GET /api/admin/v1/event-reactions
int per_page, количество элементов в одной странице пагинации. По умолчанию 25 штук
int
int page, номер страницы пагинации
string sort, поле, по которому нужно отсортировать реакции
string
string dir, в каком направлении нужно отсортировать. desc – от большего к меньшему, asc – от меньшего к большему
200 OK
OK
Успешный ответ
[ { "id": 13, "name": "closing-dry-contact", "description": "Замкнуть сухой контакт", "is_default": false }, { "id": 10, "name": "without-reaction", "description": "Без реакции", "is_default": true }, { "id": 2, "name": "set-mark", "description": "Установить метку", "is_default": false }, { "id": 4, "name": "show-camera", "description": "Открыть камеру", "is_default": false }, { "id": 7, "name": "telegram-message", "description": "Отправить сообщение в telegram", "is_default": false }, { "id": 8, "name": "show-camera-sidebar", "description": "Отразить событие в Сайдбаре", "is_default": false }, { "id": 9, "name": "sound", "description": "Звуковое уведомление", "is_default": false } ]
401 Unauthorized
Unauthorized
Токен авторизации не передан или не валидный Получение токена
curl -k --request POST \ --url 'https://your-domain/api/admin/v1/event-reactions' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --data '{ "per_page": 0, "page": 0, "sort": "string", "dir": "string" }'
$data = array ( 'per_page' => 0, 'page' => 0, 'sort' => 'string', 'dir' => '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/admin/v1/event-reactions', false, $context);
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.