Viz Channel Branding User Guide
Version 5.1 | Published October 26, 2023 ©
GET Playlist from a Channel
To obtain a collection of playlists associated with a given channel with links to each, use the following GET command. The command will obtain a full representation of the playlist's header and a full list of primary elements with a limited set of data and links to each primary elements.
Syntax for GET
GET /restapi/[channel_name]/[playlist_name]
Example Request
GET /restapi/Channel1/continuous HTTP/
1.1
Example Response
HTTP/
1.1
200
OK
Content-Type: application/vizrt.integrationshub+xml; type=playlist
<playlist xmlns=
"http://www.vizrt.com/integrationshub"
>
<title>Playlist info
for
http:
//localhost:9990/restapi/Channel1/continuous</title>
<description>Continuous Playlist</description>
<name>continuous</name>
<link href=
"http://localhost:9990/restapi/Channel1/continuous"
rel=
"self"
type=
"application/vizrt.integrationshub+xml; type=playlist"
/>
<broadcast_date>continuous</broadcast_date>
<group>
<description>Schedule1</description>
<name>1958a5d9-87bb-42f0-a208-5ea7968c7649</name>
<link href=
"http://localhost:9990/restapi/Channel1/continuous/1958a5d9-87bb-42f0-a208-5ea7968c7649"
rel=
"self"
type=
"application/vizrt.integrationshub+xml; type=group"
/>
<begin_at>
2017
-
08
-28T10:
00
:
00
.000Z</begin_at>
<duration>
5289.12
</duration>
<event_id>
1001
</event_id>
<trigger_id>
1
</trigger_id>
<take_count />
</group>
<group>
<description>Despicable Me
2
</description>
<name>b536b347-ad9a-4ff7-9fb7-b097cd4b8230</name>
<link href=
"http://localhost:9990/restapi/Channel1/continuous/b536b347-ad9a-4ff7-9fb7-b097cd4b8230"
rel=
"self"
type=
"application/vizrt.integrationshub+xml; type=group"
/>
<begin_at>
2017
-
08
-28T11:
28
:
09
.120Z</begin_at>
<duration>
300
</duration>
<event_id>
1002
</event_id>
<trigger_id>
2
</trigger_id>
<take_count />
</group>
<group>
<description>The Incredible BURT WONDERSTONE</description>
<name>d84ac0fc-bcbe-4a8a-a134-6ff0384ac8e0</name>
<link href=
"http://localhost:9990/restapi/Channel1/continuous/d84ac0fc-bcbe-4a8a-a134-6ff0384ac8e0"
rel=
"self"
type=
"application/vizrt.integrationshub+xml; type=group"
/>
<begin_at>
2017
-
08
-28T11:
33
:
09
.120Z</begin_at>
<duration>
3525.04
</duration>
<event_id>
1003
</event_id>
<trigger_id>
3
</trigger_id>
<take_count />
</group>
<group>
<description>Man of Steel - Official Trailer
3
</description>
<name>63e76944-f62e-4c24-b425-15fd603942b0</name>
<link href=
"http://localhost:9990/restapi/Channel1/continuous/63e76944-f62e-4c24-b425-15fd603942b0"
rel=
"self"
type=
"application/vizrt.integrationshub+xml; type=group"
/>
<begin_at>
2017
-
08
-28T12:
31
:
54
.160Z</begin_at>
<duration>
181.12
</duration>
<event_id>
1004
</event_id>
<trigger_id>
4
</trigger_id>
<take_count />
</group>
<ischannelpool>
false
</ischannelpool>
</playlist>