JSON REST API – version 2 – Playlists

Note: The version 2 API does not authenticate using a Connect user’s username and password using HTTP BASIC AUTH. Instead you create a client application using Connect’s web user interface. The client application is issued an ACCESS KEY and SECRET PASSPHRASE. These values must be passed in custom header values on every request.

 

URLs

Method URL Content Type
GET https://connect.telvue.com/api/v2/playlists application/json
GET https://connect.telvue.com/api/v2/playlists/:id application/json

Authentication

Type Credentials Required
Connect Custom Connect Issued Access Key and Secret Passphrase

Examples

Using your favorite HTTP tool or library, make a GET request to https://connect.telvue.com/api/v2/playlists/:id replace :id with the id of the Connect Playlist being requested and include Access Key and Secret Passphrase for the Client Application from which you are making the request.

cURL

The popular cURL tool comes bundled with any Linux, Mac, or UNIX operating system, and there are Windows equivalents.

Example cURL GET Playlists Index Request:

curl -k --header "CONNECT-ACCESS-KEY: mykey" \
--header "CONNECT-SECRET-PASSPHRASE: mysecretpassphrase" \
https://connect.telvue.com/api/v2/playlists.json

Example JSON Response:

{
  "playlists":
    [
      {
        "id":836,
        "name":"Test Playlist",
        "description":"A long text description of this playlist",
        "user_id":24,
        "organization_id":13,
        "thumbnail_large":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/framegrab/framegrab_6bd37c13-a487-4235-8c69-169b9a51f092.jpg",
        "thumbnail_medium":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/vod_thumb_hd/vod_thumb_hd_5ac1c2f0-d51a-49be-9513-5e97b5542546.jpg",
        "thumbnail_small":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/vod_thumb_sd/vod_thumb_sd_16d95875-67dc-40ba-8f0c-4af1ecbccc12.jpg",
        "thumbnail_tiny":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/thumb/thumb_e8e08a0c-88ca-4f7b-a4cb-99f56f6fbb98.jpg",
        "playables_count":2
      }
    ]
}

Example cURL GET Playlist Request:

curl -k --header "CONNECT-ACCESS-KEY: mykey" \
--header "CONNECT-SECRET-PASSPHRASE: mysecretpassphrase" \
https://connect.telvue.com/api/v2/playlists/836.json

Example JSON Response:

{
  "playlist":
    {
      "id":836,
      "name":"Test Playlist",
      "description":"A long text description of this playlist",
      "user_id":24,
      "organization_id":13,
      "thumbnail_large":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/framegrab/framegrab_6bd37c13-a487-4235-8c69-169b9a51f092.jpg",
      "thumbnail_medium":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/vod_thumb_hd/vod_thumb_hd_5ac1c2f0-d51a-49be-9513-5e97b5542546.jpg",
      "thumbnail_small":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/vod_thumb_sd/vod_thumb_sd_16d95875-67dc-40ba-8f0c-4af1ecbccc12.jpg",
      "thumbnail_tiny":"https://connect.telvue.com/alternate_assets/ae9b0680-0b93-0133-e301-52540084dd42/playlists/836/thumb/thumb_e8e08a0c-88ca-4f7b-a4cb-99f56f6fbb98.jpg",
      "playables_count":2
    }
}

in Connect APIs

Related Articles