Get the list of people counting events
List of people counting events
List of people counting events in the region.
GET /api/v1/analytic-case/{case}/person-counting/history |
Parameters
int
case, Unique identifier of the analytics case
int
per_page, Number of elements in one pagination page.
string
date, Template for filtering by date.
array
cameras, Array of camera ids for which events will be displayed
string
timezone, Time zone for the date filter template.
string
from, Date from which filtering will be carried out.
string
to, Date until which filtering will be carried out.
200 |
Successful response
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|
cURL
BASH
curl -k --request POST \
--url 'https://your-domain/api/v1/analytic-case/{case}/person-counting/history' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"case": 0,
"per_page": 0,
"date": "string",
"cameras": [],
"timezone": "string",
"from": "string",
"to": "string"
}'
PHP
PHP
$data = array (
'case' => 0,
'per_page' => 0,
'date' => 'string',
'cameras' =>
array (
),
'timezone' => 'string',
'from' => 'string',
'to' => 'string',
);
$context = stream_context_create([
'ssl'=>['verify_peer' => false],
'http' => [
'method' => 'GET',
'header' => "Content-Type: application/json\r
Accept: application/json",
'content'=>json_encode($data)
]
]);
$result = file_get_contents('https://your-domain/api/v1/analytic-case/{case}/person-counting/history', false, $context);