Skip to main content
Skip table of contents

Список логов домофона

GET/api/admin/v1/intercoms/{intercom}/logs

Headers

Authorization

Bearer token

Accept

application/json

X-Client

ios-cctv|android-cctv|thick-legal|web

X-UUID

unique device id

Body

per_pagerequired

int

Количество элементов в одной странице пагинации. По умолчанию 25 штук

pagerequired

int

Номер страницы пагинации

Response

200

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

JSON
{
    "data": [
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:53:35.29+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:53:22.11+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:52:46.31+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:52:27+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:51:54.02+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:51:47.42+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:49:31.27+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:48:55.46+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:37:23.92+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T07:37:18.26+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:13:02.62+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:11:43.22+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:11:14.29+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:10:26.72+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:09:02.87+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:07:23.49+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T05:07:12.18+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:50:00.23+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:49:07.95+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:47:13.96+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:45:47.76+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:45:11.02+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:59.71+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:44.17+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "off"
            }
        },
        {
            "device_id": "017f4d15-6dd8-48b6-968e-b0f23740c517",
            "date_time": "2022-06-23T04:44:32.86+00:00",
            "context": "intercom",
            "event_code": 0,
            "data": {
                "action": "cam_light",
                "state": "on"
            }
        }
    ],
    "links": {
        "first": "/?page=1",
        "last": "/?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "/?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "/",
        "per_page": 25,
        "to": 25,
        "total": 25
    }
}
401

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

Пример

JSON
curl -k --location --request GET 'https://vms.local/api/admin/v1/intercoms/{intercom}/logs?per_page=int&page=int' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

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

If this problem persists, please contact our support.