Rights Importer API documentation version v2
Import Airing rights
This route is used to import Airing rights
post
post /rights/v1/ingest/{channelId}
URI Parameters
- channelId: required (string)
Example:
6b9d09d5-981c-4973-8f2b-b9878f587198
Body
Media type: application/json
Type: object
Properties- url: required (string)
- fileType: required (string)
either xmltv, tnt, sony or mock
- filters: required (array of string)
either catchup or !cathup, only a list for future filter extensions
- matchTitle: required (boolean)
only for v1! If match on date or title.
HTTP status code 200
Success
Body
Media type: application/json
Type: object
Properties- airings: required (array of AiringWithRights)
Items: AiringWithRights
- start: required (integer)
- stop: required (integer)
- title: required (string)
- season: (string)
- episode: (string)
- episodeTitle: (string)
- rights: required (object)
- liveAvailable: (boolean)
- liveAirplay: (boolean)
- liveFastforward: (boolean)
- liveRewind: (boolean)
- livePause: (boolean)
- recordedAvailable: (boolean)
- recordedAirplay: (boolean)
- recordedFastforward: (boolean)
- recordedRewind: (boolean)
- recordedPause: (boolean)
- recordedStartOfAvailability: (integer)
- recordedEndOfAvailability: (integer)
- coreAiring: (object)
Example:
{
"airings":
[{
"start": 1449147600,
"stop": 1449149399,
"title": "Der Prinz von Bel Air",
"rights": {
"recordedRewind": false,
"recordedPause": false,
"recordedFastforward": false,
"recordedAirplay": false,
"recordedAvailable": false
},
"coreAiring": {
"id": 5798326,
"source": "epgsys",
"sourceId": "151061449147600",
"airingId": "151061449147600",
"startTime": 1449147600,
"stopTime": 1449149400,
"channelId": 224,
"title": "Der Prinz von Bel Air",
"category": "Others",
"tvDate": "2015-12-03",
"description": "Will hat eine neue Freundin...",
"episodeNum": "1",
"episodeSeason": "2",
"episodeTitle": "Did The Earth Move For You?",
"genre": "Comedy/Komödie",
"regularId": "1376361",
"year": "1990-1996",
"importId": 1283
}
}]
}
Import Broadcast rights
This route is used to import Broadcast rights
post
post /rights/{version}/ingest/{channelId}
URI Parameters
- version: required (string)
- channelId: required (string)
Example:
6b9d09d5-981c-4973-8f2b-b9878f587198
Body
Media type: application/json
Type: object
Properties- url: required (string)
- fileType: required (string)
either xmltv, tnt, sony or mock
- filters: required (array of string)
either catchup or !cathup, only a list for future filter extensions
- matchTitle: required (boolean)
only for v1! If match on date or title.
HTTP status code 200
Success
Body
Media type: application/json
Type: object
Properties- broadcasts: required (array of BroadcastWithRights)
Items: BroadcastWithRights
- start: required (integer)
- stop: required (integer)
- title: required (string)
- season: (string)
- episode: (string)
- episodeTitle: (string)
- rights: required (object)
- liveAvailable: (boolean)
- liveAirplay: (boolean)
- liveFastforward: (boolean)
- liveRewind: (boolean)
- livePause: (boolean)
- recordedAvailable: (boolean)
- recordedAirplay: (boolean)
- recordedFastforward: (boolean)
- recordedRewind: (boolean)
- recordedPause: (boolean)
- recordedStartOfAvailability: (integer)
- recordedEndOfAvailability: (integer)
- coreBroadcast: (object)
Example:
{
"broadcasts":
[{
"start": 1449147600,
"stop": 1449149399,
"title": "Der Prinz von Bel Air",
"season": "s02",
"episode": "e012",
"episodeTitle": "Der Prinz und der Pretzel",
"rights": {
"recordedRewind": false,
"recordedPause": false,
"recordedFastforward": false,
"recordedAirplay": false,
"recordedAvailable": false
},
"coreBroadcast": {
"broadcastRef": "d69dca65-7a9b-4b46-892c-855d07e2f950",
"partnerId": "magine",
"sourceId": "524911502930400000",
"startTimeUtc": 1502930400,
"stopTimeUtc": 1502933700,
"actualStartTimeUtc": 1502930400,
"actualStopTimeUtc": 1502933700,
"tvDate": "2017-08-17",
"metadata": {
"kind": "program",
"title": "Bør dyrehagene stenges?",
"genres": [
"Science",
"Documentary",
"Special"
],
"images": [
{
"type": "three-four",
"default": true,
"filename": "http://integration-images.tvoli.com/categories/default.jpg",
"embeddedText": false
}
],
"groupId": "13723600",
"duration": 3300,
"title_no": "Bør dyrehagene stenges?",
"genres_no": [
"Science",
"Documentary",
"Special"
],
"description": "En titt på om dyrehagene har utstpilt sin rolle og om de bidrar de så mye til å bevare arter at det forsvarer å holde dyr i fangenskap for vår forlystelse. Vi kan jo like gjerne se dem på TV.",
"description_no": "En titt på om dyrehagene har utstpilt sin rolle og om de bidrar de så mye til å bevare arter at det forsvarer å holde dyr i fangenskap for vår forlystelse. Vi kan jo like gjerne se dem på TV.",
"productionYear": 2016
},
"rights": {
"catchupAvailable": false,
"liveAvailable": true,
"catchupAvailableFrom": 1502930400,
"catchupAvailableTo": 1503535200,
"extendedRights": {
"pause": false,
"rewind": false,
"fastForward": false
}
},
"viewableId": "ac008c66-f049-4516-9209-077ad94c530f"
}
}]
}