curl --request GET \
--url https://api.example.com/broadcasts \
--header 'X-API-Key: <api-key>'{
"items": [
{
"id": 123,
"target_type": "<string>",
"message_text": "<string>",
"has_media": true,
"total_count": 123,
"sent_count": 123,
"failed_count": 123,
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"media_type": "<string>",
"media_file_id": "<string>",
"media_caption": "<string>",
"blocked_count": 0,
"admin_id": 123,
"admin_name": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}Получение списка рассылок.
curl --request GET \
--url https://api.example.com/broadcasts \
--header 'X-API-Key: <api-key>'{
"items": [
{
"id": 123,
"target_type": "<string>",
"message_text": "<string>",
"has_media": true,
"total_count": 123,
"sent_count": 123,
"failed_count": 123,
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"media_type": "<string>",
"media_file_id": "<string>",
"media_caption": "<string>",
"blocked_count": 0,
"admin_id": 123,
"admin_name": "<string>",
"completed_at": "2023-11-07T05:31:56Z"
}
],
"total": 123,
"limit": 123,
"offset": 123
}1 <= x <= 200x >= 0