Skip to main content
Skip table of contents

По загрузке каналов медиасервера

Отчет по загрузке каналов медиасервера

После получения успешного ответа приходит пуш Вебсокеты c типом 'generate_report' с ссылкой на скачивание отчета

POST /api/admin/v1/reports?type=loading_server_channels
201 Created

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

JSON
{
    "id": 6438,
    "type": "loading_server_channels",
    "from": "2020-05-24",
    "to": "2021-05-24",
    "url": "http://127.0.0.1:8080/storage/",
    "created_at": "2023-03-09T13:15:35.000000Z"
}
401 Unauthorized

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

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/admin/v1/reports?type=loading_server_channels' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '[]'
PHP
PHP
$data = array (
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/admin/v1/reports?type=loading_server_channels', false, $context);
JavaScript errors detected

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

If this problem persists, please contact our support.