Skip to main content
Skip table of contents

Просмотр кaмеры. Billing API

Просмотр камеры

GET /api/v1/billing/cameras

Параметры метода

string mac, Mac адрес камеры

200 OK

Успешный ответ

JSON
{
    "id": 1,
    "status": "empty",
    "name": "Камера private 1",
    "is_archive_recording": true,
    "archive_storage_days": 90,
    "group_type": "private",
    "is_user_owner": true,
    "is_need_replace": false,
    "latitude": 53.145212,
    "longitude": 25.274193,
    "network_device": {
        "mac": "D4:E8:53:7C:42:31",
        "serial_number": "G98474831"
    },
    "folder": null,
    "external_id": "bd0a951f-40a2-4edf-b213-bcd90ff5273d"
}

422 Unprocessable Entity

Возвращает JSON объект с ошибкой. VMS Billing/Общая информация/Валидация внешней системы

JSON
{
    "message": "Тут не будет информативного сообщения",
    "errors": {
        "any_key": [
            "Тут будет описана причина ошибки"
        ]
    }
}
cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/billing/cameras' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "mac": "string"
}'
PHP
PHP
$data = array (
  'mac' => '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/billing/cameras', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.