Channel Set API (Deprecated)

The Channel Set API allows for the listing and setting of channel set lineups.

Note: This software is deprecated. Use the latest version.

There are three modes, 'list', 'assign' and 'create'. As in the Query API, interaction with the Channel Set API is through signed REST-style requests to http://api.ooyala.com/partner/channels.

Required Parameters

  • pcode – Provider Code
  • expires – Query expiration time in seconds since epoch (00:00:00 1/1/1970 GMT)
  • mode – One of list, assign, create
  • signature – The digital signature of the request. The signature should be calculated using SHA-256 with the signature generation rules.

List Mode

Additional required parameter: channelSetEmbedCode

List all channel set components.

Example:

http://www.ooyala.com/partner/channel_sets?pcode=<pcode>&channelSetEmbedCode=<channelSetEmbedCode>&expires=<expiration>&mode=list&signature=<signature>

Result:

<?xml version="1.0" encoding="UTF-8"?>
<channelSet>
  <embedCode>9scDM426LtgO5kElm3ddWAExjw6uq7Rs</embedCode>
  <title>New Channel</title>
  <status>live</status>
  <channel>
    <embedCode>w4adOyOiMjsW-58yCgrY92IOer3v_hAp</embedCode>
    <title>demo channel</title>
    <description></description>
    <status>live</status>
    <content_type>Channel</content_type>
    <uploadedAt>1217036203</uploadedAt>
    <length>130766</length>
    <size>23641511</size>
    <updatedAt>1234765782</updatedAt>
  </channel>
</channelSet>

Assign Mode

Additional required parameters: channelSetEmbedCode, channelEmbedCodes

Assigns a comma-separated list of channel embed codes (or a single channel embed code) to a channel set embed code as a lineup. Embed codes for other channels sets are invalid. An existing channel set lineup will be overwritten when using this mode. Returns a text file with 'OK' on success or an error message on failure.

Example:

http://www.ooyala.com/partner/channel_sets?pcode=<pcode>&channelSetEmbedCode=<channelSetEmbedCode>&channelEmbedCodes=<embedCode1>,<embedCode2>&expires=<expiration>&mode=assign&signature=<signature>

Create Mode

Additional required parameter: title

Create a channel set in Backlot with the given title.

Example:

http://www.ooyala.com/partner/channel_sets?pcode=<pcode>&expires=<expiration>&mode=create&title=<channelSetTitle>&signature=<signature>

Result:

<?xml version="1.0" encoding="UTF-8"?>
<channelSet>
  <embedCode>R2NTZkMTpJ0i-YaH8cPuKwS_yHJgri7O</embedCode>
  <title>My Channel Set Title</title>
  <status>live</status>
</channelSet>

해당 내용이 도움 되었습니까?