Skip to main content
Skip table of contents

Список архивных жалоб камеры

Список архивных жалоб камеры

GET api/admin/v1/camera/{camera}/issues

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

int camera, уникальный идентификатор камеры

200 OK

Возвращает список объектов жалоб камеры

JSON
{
    "data": [
        {
            "id": 6,
            "title": "Нет звука",
            "count": 1,
            "created_at": "",
            "updated_at": "2020-06-12 12:00:49",
            "resolver": {
                "id": 636,
                "name": "ФИО",
                "login": "user",
                "created_at": "2019-10-22 08:53:32",
                "updated_at": "2020-11-26 11:07:02",
                "expired_at": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "deleted_at": "2020-06-12 12:00:49"
        },
        {
            "id": 6,
            "title": "Нет звука",
            "count": 1,
            "created_at": "",
            "updated_at": "2020-06-12 12:00:49",
            "resolver": {
                "id": 636,
                "name": "ФИО",
                "login": "user",
                "created_at": "2019-10-22 08:53:32",
                "updated_at": "2020-11-26 11:07:02",
                "expired_at": null,
                "is_licence_limit_reached": true,
                "ptz_priority": 10,
                "access_token_id": null
            },
            "deleted_at": "2020-06-12 12:00:49"
        }
    ],
    "links": {
        "first": "http://vms/api/admin/v1/camera/7442/issues?page=1",
        "last": "http://vms/api/admin/v1/camera/7442/issues?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "http://vms/api/admin/v1/camera/7442/issues?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "http://vms/api/admin/v1/camera/7442/issues",
        "per_page": 15,
        "to": 2,
        "total": 2
    }
}

401 Unauthorized

Токен авторизации не передан или не валидный. Получение токена

cURL
BASH
curl -k --request POST \
	--url 'https://your-domainapi/admin/v1/camera/{camera}/issues' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "camera": 0
}'
PHP
PHP
$data = array (
  'camera' => 0,
);
$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-domainapi/admin/v1/camera/{camera}/issues', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.