# Channels List

API call format

GET /broker/channels

Description

This call gets all available video channels.

Precondition

  • No authorization token is needed.

Postcondition

  • On success response code should be 200
  • On success the whole JSON body of the available video channeols is returned with details.
  • On failure an error will be returned with the right error code and description.

Example:

[Request] GET https://<base_api_url>/broker/channels
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","Authorization":"<IdToken>"}
[Response] 200
[Response Headers] {"Content-Type":["application/json"],"Content-Length":["..."],"Connection":["keep-alive"],"Date":["..... GMT"],"x-amzn-RequestId":["....."],....]}
[Response] 
{
  "status": true,
  "data": [
    {
      "guid": "<channel_guid_1>",
      "name": "<channel_name_1>",
      "description": "<channel_description_1>",
      "type": "virtual",
      "active": 1,
      "hasAds": 0,
      "order": 2,
      "playbackUrl": "https://<server>/broker/play/<channel_guid_1>.m3u8"
    },
    {
      "guid": "<channel_guid_2>",
      "name": "<channel_name_2>",
      "description": "<channel_description21>",
      "type": "virtual",
      "active": 1,
      "hasAds": 0,
      "order": 2,
      "playbackUrl": "https://<server>/broker/play/<channel_guid_2>.m3u8"
    },
    .........
    {
      "guid": "<channel_guid_last>",
      "name": "<channel_name_last>",
      "description": "<channel_description_last>",
      "type": "virtual",
      "active": 1,
      "hasAds": 0,
      "order": 2,
      "playbackUrl": "https://<server>/broker/play/<channel_guid_last>.m3u8"
    }
  ]
}