Skip to main content
Skip table of contents

Просмотр временного пользователя

Просмотр временного пользователя

Просмотр временного пользователя.

GET /api/admin/v1/special-users/{user}

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

int user, уникальный идентификатор временного пользователя

200 OK

Возвращает объект временного пользователя

JSON
{
    "id": 13,
    "name": "user",
    "login": "user@mail.com",
    "created_at": "2022-11-17 17:07:27",
    "updated_at": "2022-11-17 17:07:27",
    "expired_at": "2122-11-17 17:07:26",
    "user_type": "special",
    "cameras": [
        {
            "id": 1,
            "group_id": 2,
            "status": "inactive",
            "type": "media_server_v2",
            "pretty_text": "Камеры",
            "short_pretty": "Камеры",
            "start_at": "",
            "created_at": "2022-11-16 18:22:00",
            "name": "Камера 1",
            "can_edit": true,
            "origin": null,
            "group_type": "public",
            "shared_from": null,
            "ip": "192.168.204.13",
            "lat": null,
            "lng": null,
            "azimuth": null,
            "is_sensitive": 0,
            "is_public": 0,
            "is_ip_reserved": false,
            "count_issues": 0,
            "source": "manual",
            "archive_storage_days": null,
            "is_archive_recording": false,
            "archive_recording_type": "fulltime",
            "is_increased_reconnect": 0,
            "is_sound_enabled": true,
            "is_bridge": false,
            "can_change_archive_timetable": true,
            "is_auto_create_streams": false,
            "is_provisioning_enable": false,
            "is_can_manage_archive_storage_days": true,
            "is_editable": true,
            "is_intercom": 1
        }
    ],
    "is_licence_limit_reached": false,
    "permissions": [
        {
            "id": 1,
            "name": "logins-store",
            "display_name": "Добавление логина",
            "group": "Логин"
        }
    ],
    "ptz_priority": 1,
    "access_token_id": null,
    "analytic_license": [
        {
            "type": "analytic_l1",
            "type_pretty": "LIC-XXXX-YY-L1",
            "all": 20,
            "free": 20,
            "used": 0
        },
        {
            "type": "analytic_l2",
            "type_pretty": "LIC-XXXX-YY-L2",
            "all": 20,
            "free": 20,
            "used": 0
        },
        {
            "type": "analytic_l3",
            "type_pretty": "LIC-XXXX-YY-L3",
            "all": 20,
            "free": 20,
            "used": 0
        }
    ],
    "intercoms": [
        {
            "id": 1,
            "title": null,
            "is_online": false,
            "group_id": 4,
            "camera_id": 1,
            "flat_from": 1,
            "flat_to": 41,
            "flat_offset": null,
            "department": 1,
            "department_name": "department_name",
            "department_type": "main",
            "department_type_pretty": "Вход",
            "uuid": "9f44078b-0326-4143-a0c2-932a3137ba90",
            "address": "г. Город, ул. Улица 1",
            "created_at": "2022-11-16 18:08:36",
            "updated_at": "2022-11-17 11:27:48",
            "mac": "08:13:c0:00:00:82",
            "vendor": "interconnection",
            "vendor_pretty": "Интерсвязь",
            "status": "installed",
            "status_pretty": "Установлен",
            "switch": "metakom",
            "switch_pretty": "Метаком",
            "schema": "http",
            "ip": "192.168.18.207",
            "port": 8080,
            "login": "root",
            "password": "123456",
            "commutators_count": 2
        }
    ],
    "intercom_flats": [
        {
            "id": 1,
            "flat": 1,
            "key_count": null,
            "users_count": null,
            "intercom_id": 1,
            "number": "user@vms.local",
            "duplicate_number": "xxxxxxxxxxx",
            "is_duplicated_sip_line_aYYilable": true,
            "is_analog_line_enable": false,
            "is_sip_line_enable": false
        }
    ],
    "intercom_keys": [
        {
            "id": 1,
            "key": "131231",
            "intercom_id": 1,
            "created_at": "2022-11-28 10:58:19",
            "updated_at": "2022-11-28 11:13:25"
        }
    ],
    "is_has_hidden_cameras_for_admin": true
}

401 Unauthorized

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

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

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

If this problem persists, please contact our support.