Skip to main content
Skip table of contents

Логины

Логины

Список логинов, относящихся к группе.

GET /api/admin/v1/camera-group/{group}/logins

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

int group, уникальный идентификатор группы


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


int page, номер страницы пагинации

200 OK

Список логинов

JSON
{
    "data": [
        {
            "id": 319293,
            "user_type": "legal",
            "login": "user",
            "billing_id": "1630002263612",
            "csa": [
                "1",
                "2",
                "3"
            ],
            "csa_billing_info": "755_16636",
            "login_billing_info": {
                "UAN": "16300022636",
                "login": "user",
                "tp_id": 2240,
                "acc_sn": "74091162",
                "contacts": [
                    "телефон ",
                    "факс ",
                    "e-mail "
                ],
                "csa_code": 750145,
                "clienttype": 1,
                "issa_error": "Success",
                "app_add_num": "1630002263612",
                "issa_status": 100,
                "acc_f_region": 1630,
                "clnt_method_id": 1,
                "app_block_state": "не блокирован",
                "clnt_method_dsc": "Кредитный",
                "subscriber_name": "Организация",
                "app_install_addrs": "Адрес",
                "app_block_state_fd": "24.11.2021 15:01:17",
                "app_block_state_code": 0,
                "tp_available_change_date": "31.12.2999 00:00:00"
            },
            "created_at": "2021-11-24 15:01:58"
        }
    ],
    "links": {
        "first": "https://vms.local/api/admin/v1/camera-group/1/logins?per_page=25&page=1",
        "last": "https:///.vms.local/api/admin/v1/camera-group/1/logins?per_page=25&page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [
            {
                "url": null,
                "label": "pagination.previous",
                "active": false
            },
            {
                "url": "https://vms.local/api/admin/v1/camera-group/200156/logins?per_page=25&page=1",
                "label": "1",
                "active": true
            },
            {
                "url": null,
                "label": "pagination.next",
                "active": false
            }
        ],
        "path": "https://vms.local/api/admin/v1/camera-group/200156/logins",
        "per_page": 25,
        "to": 1,
        "total": 1
    }
}

401 Unauthorized

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

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

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

If this problem persists, please contact our support.