Get the chart of events for people counting
Get the list of people counting events
View a list of people counting events in an area. The response will be given depending on the type of chart they want to receive.
GET /api/v1/analytic-case/{case}/person-counting/chart |
Parameters
int
case, Unique identifier of the analytics case
str
chart, line - line graph
bar - bar graph
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 |
Returns a list of data for constructing a line graph
JSON
|
200 |
Returns a list of data for constructing a bar chart
JSON
|
401 |
Authorization token not sent or not valid |
422 |
Returns a JSON object with an error.
JSON
|
cURL
curl -k --request POST \
--url 'https://your-domain/api/v1/analytic-case/{case}/person-counting/chart' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"case": 0,
"chart": "str",
"date": "string",
"cameras": [],
"timezone": "string",
"from": "string",
"to": "string"
}'
PHP
$data = array (
'case' => 0,
'chart' => 'str',
'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/chart', false, $context);