Schedule internal API documentation version v1
http://{slave}/schedule/{version}
Lookup in Zookeeper with service name "schedule-internal"
- slave: required(string)
- version: required(v1)
/broadcasts/{broadcastId}
get
get /broadcasts/{broadcastId}
URI Parameters
- broadcastId: required(string)
Example:
07ec632f-b49e-478f-a353-e385adfa07c7
Headers
- Magine-PartnerId: required(string)
Example:
testing
HTTP status code 200
Success
Body
Media type: application/json
Type: object
Properties- id: required(string)
- title: required(string)
- description: (string)
- start: required(integer)
- stop: required(integer)
- streamStart: required(integer)
- streamStop: required(integer)
- streamId: required(string)
- liveStreamId: required(string)
- liveAvailable: required(boolean)
- catchupInterval: (object)
- from: required(integer)
- to: required(integer)
Example:
{ "from": 1477651200, "to": 1478252700 }
- extendedRights: required(object)
Example:
{
"id": "07ec632f-b49e-478f-a353-e385adfa07c7",
"title": "Fången på främmande mark",
"description": "Kokainsmugglande Duane Wollum höll nästan de lättförtjänta pengarna i handen när en säkerhetskontroll avslöjade att han bar på ett paket.",
"start": 1477647900,
"stop": 1477651200,
"streamStart": 1477647900,
"streamStop": 1477651200,
"streamId": "227",
"liveStreamId": "6b9d09d5-981c-4973-8f2b-b9878f587198",
"liveAvailable": true,
"catchupInterval": {
"from": 1477651200,
"to": 1478252700
},
"extendedRights": {}
}
HTTP status code 404
Not found
Body
Media type: application/json
Type: object
Properties- error: required(object)
- message: required(string)
- user_message: required(string)
Example:
{
"error": {
"message": "No data could be found.",
"user_message": "No data could be found."
}
}
/channels/{channelId}
get
get /channels/{channelId}
URI Parameters
- channelId: required(string)
Example:
6b9d09d5-981c-4973-8f2b-b9878f587198
Headers
- Magine-PartnerId: required(string)
Example:
testing
HTTP status code 200
Success
Body
Media type: application/json
Type: object
Properties- id: required(string)
- streamId: required(string)
- duration: required(integer)
- verifyAge: required(boolean)
Example:
{
"id": "6b9d09d5-981c-4973-8f2b-b9878f587198",
"streamId": "227",
"duration": 3600,
"verifyAge": true
}
HTTP status code 404
Not found.
Body
Media type: application/json
Type: object
Properties- error: required(object)
- message: required(string)
- user_message: required(string)
Example:
{
"error": {
"message": "No data could be found.",
"user_message": "No data could be found."
}
}