Version 7.8.2

Back | 

WsRandomPrograms

Returns randomized programs from a given project

URL Format

/ws/ws_random_programs/api/{app_token}/mode/json/apiv/5/p/{project_uuid}/callback/{callback}?limit={limit}

Parameters

Name Req Type Description
app_token string The api token for the given account. You can find the api token when navigating through account->api accounts
apiv integer The api version; only version 5 supported.
project_uuid string The project uuid of the vod project.
callback string javascript callback function name for jsonp responses
limit string number of programs to be returned. Max is set to 50.

Possible Responses

  • 303 programs found
  • 102 Invalid app token.
  • 659 Invalid Client
  • 336 Invalid uuid
  • 429 Programs not found

Example Response

{
  "response": {
    "success": {
      "code": 303,
      "message": "Programs Found",
      "details": ""
    },
    "WsRandomPrograms": {
      "programs": [
        {
          "sortnum": 0,
          "type": "video",
          "assetid": 2187606,
          "uuid": "nl6z808s",
          "thumbnailUrl": "**********",
          "posterUrl": "**********",
          "duration": "344.653991699219",
          "projectUUID": "fqk1llt6",
          "asset": {
            "ipadM3u8Url": "**********",
            "iphoneM3u8Url": "**********",
            "m3u8AndroidURL": "**********",
            "rtmpSmil": "*************",
            "httpSmil": "**************",
            "hdSmil": "******************",
            "captions": [
              
            ],
            "asset_type": "video",
            "lowest_bitrate_http_url": "**********"
          },
          "Title": "title1",
          "Description": "description",
          "metadatas": {
            "meta1": {
              "value": "",
              "displayName": "test1"
            }
          }
        }
      ]
    }
  }
}