Get the list of cameras used in the case
Get the list of cameras used in the case
List of cameras used in the case.
GET /api/v1/analytic-case/{case}/person-counting/live |
Parameters
int
case, Unique identifier of the analytics case
array
cameras, Array of camera ids
string
date, Template for filtering by date.
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 an array of cameras used in the analytics case
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/live' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"case": 0,
"cameras": [],
"date": "string",
"timezone": "string",
"from": "string",
"to": "string"
}'
PHP
PHP
$data = array (
'case' => 0,
'cameras' =>
array (
),
'date' => 'string',
'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/live', false, $context);