Skip to content

Instantly share code, notes, and snippets.

@caoilte
Last active November 29, 2016 21:53
Show Gist options
  • Save caoilte/b4ff446c243026c8bf2812d47878467b to your computer and use it in GitHub Desktop.
Save caoilte/b4ff446c243026c8bf2812d47878467b to your computer and use it in GitHub Desktop.
{
"_embedded": {
"promotions": [{
"type": "url",
"contentfulName": "15 minute container",
"position": "primary",
"title": "Mark's First URL Promo",
"subtitle": "It's the first one I tell ya",
"_links": {
"image": {
"href": "http://news.images.itv.com/image/file/1075325/stream_img.jpg"
},
"url": {
"href": "http://www.itv.com/news/2016-08-23/team-gb-return-home-after-best-ever-olympic-games/"
}
}
}, {
"type": "bundle",
"id": "5VZXDrbFgQCMskkcggow2q",
"contentfulName": "15 minute container",
"position": "secondary",
"title": "Mark's First URL Promo",
"subtitle": "It's the first one I tell ya",
"_links": {
"image": {
"href": "http://news.images.itv.com/image/file/1075325/stream_img.jpg"
},
"url": {
"href": "http://www.itv.com/news/2016-08-23/team-gb-return-home-after-best-ever-olympic-games/"
}
},
"_embedded": {
"promotions": [{
"type": "url",
"id": "5VZXDrbFgQCMskkcggow2q",
"contentfulName": "15 minute container",
"title": "Mark's First URL Promo",
"subtitle": "It's the first one I tell ya",
"_links": {
"image": {
"href": "http://news.images.itv.com/image/file/1075325/stream_img.jpg"
},
"url": {
"href": "http://www.itv.com/news/2016-08-23/team-gb-return-home-after-best-ever-olympic-games/"
}
}
}, {
"type": "simulcast",
"id": "5VZXDrbFgQCMskkcggow2q",
"contentfulName": "15 minute container",
"title": "Mark's First URL Promo",
"subtitle": "It's the first one I tell ya",
"_embedded": {
"channel": {
"name": "ITV",
"_links": {
"primaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-colour-pos.svg"
},
"secondaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-mono-neg.svg"
},
"dogImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-mono-neg.svg"
},
"backgroundImage": {
"href": "http://mercury.itv.com/DotCom/episode/sim1/image?q={quality}&format={image_format}&w={width}&h={height}&blur={blur}&bg={bg}",
"templated": true
},
"playlist": {
"href": "https://old-origin-api.itv.com/playlist/itvonline/dotcom/itv"
}
}
}
},
"_links": {
"image": {
"href": "http://news.images.itv.com/image/file/1075325/stream_img.jpg"
}
}
}, {
"type": "catchup",
"id": "5VZXDrbFgQCMskkcggow2q",
"contentfulName": "15 minute container",
"title": "Mark's First URL Promo",
"subtitle": "It's the first one I tell ya",
"_embedded": {
"channel": {
"name": "ITV",
"_links": {
"primaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-colour-pos.svg"
},
"secondaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-mono-neg.svg"
},
"dogImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv/itv-mono-neg.svg"
},
"backgroundImage": {
"href": "http://mercury.itv.com/DotCom/episode/sim1/image?q={quality}&format={image_format}&w={width}&h={height}&blur={blur}&bg={bg}",
"templated": true
},
"playlist": {
"href": "https://old-origin-api.itv.com/playlist/itvonline/dotcom/itv"
}
}
},
"production": {
"productionId": "2/4259/0277#001",
"episodeId": "2/4259/0277",
"episodeTitle": "Road to India",
"duration": {
"iso8601": "PT30M",
"display": "30 mins"
},
"broadcastDateTime": {
"commissioning": "2016-08-08T20:00Z"
},
"series": 14,
"episode": 20,
"synopses": {
"ninety": "Brian falls for a tech support girl in India. Peter steals the show at Joe's bingo night.",
"short": "Brian falls for a tech support girl in India. Peter steals the show at Joe's bingo night."
},
"guidance": "Contains adult humour.",
"_embedded": {
"programme": {
"id": "2/4259",
"title": "Family Guy",
"_links": {
"doc:productions": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/productions?programmeId=2_4259&broadcaster=unknown"
}
}
},
"categories": [{
"name": "Comedy",
"_links": {
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?category=Comedy&broadcaster=unknown"
}
}
}, {
"name": "Entertainment",
"_links": {
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?category=Entertainment&broadcaster=unknown"
}
}
}],
"channel": {
"name": "ITV2",
"_links": {
"primaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-colour.svg"
},
"secondaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-mono-neg.svg"
},
"dogImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-mono-neg.svg"
},
"backgroundImage": {
"href": "http://mercury.itv.com/DotCom/episode/sim2/image?q={quality}&format={image_format}&w={width}&h={height}&blur={blur}&bg={bg}",
"templated": true
},
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?channelId=itv2&broadcaster=unknown"
}
}
},
"variantAvailability": [{
"platformTag": "samsung",
"from": "2016-08-08T20:30Z",
"until": "2016-09-05T22:59Z",
"features": []
}]
},
"_links": {
"image": {
"href": "http://http://mercury.itv.com/browser/production/image?q={quality}&format={image_format}&w={width}&h={height}&blur={blur}&bg={bg}&productionId=2%2F4259%2F0277%23001",
"templated": true
}
}
}
},
"_links": {
"image": {
"href": "http://news.images.itv.com/image/file/1075325/stream_img.jpg"
}
}
}]
}
}],
"programmes": [
{
"id": "2/4259",
"title": "Family Guy",
"_embedded": {
"productions": {
"count": 15,
"_links": {
"doc:productions": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/productions?programmeId=2_4259&broadcaster=unknown"
}
}
},
"latestProduction": {
"productionId": "2/4259/0196#001",
"episodeId": "2/4259/0196",
"episodeTitle": "Ratings Guy",
"duration": {
"iso8601": "PT30M",
"display": "30 mins"
},
"broadcastDateTime": {
"commissioning": "2016-09-05T22:00Z"
},
"series": 11,
"episode": 2,
"synopses": {
"ninety": "Peter convinces the networks to make ridiculous changes to popular shows.",
"short": "Peter convinces the networks to make ridiculous changes to popular shows."
},
"guidance": "Contains violence and adult humour.",
"_embedded": {
"categories": [
{
"name": "Comedy",
"_links": {
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?category=Comedy&broadcaster=unknown"
}
}
},
{
"name": "Entertainment",
"_links": {
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?category=Entertainment&broadcaster=unknown"
}
}
}
],
"channel": {
"name": "ITV2",
"_links": {
"primaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-colour.svg"
},
"secondaryImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-mono-neg.svg"
},
"dogImage": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/itvstatic/assets/images/brands/itv2/itv2-mono-neg.svg"
},
"doc:programmes": {
"href": "http://fetd.prod.cps.awseuwest1.itvcloud.zone/platform/itvonline/samsung/programmes?channelId=ITV2&broadcaster=unknown"
}
}
},
"variantAvailability": [
{
"platformTag": "samsung",
"from": "2016-09-05T22:30Z",
"until": "2016-09-13T22:59Z",
"features": []
}
]
},
"_links": {
"image": {
"href": "http://mercury.itv.com/browser/production/image?q={quality}&format={image_format}&w={width}&h={height}&blur={blur}&bg={bg}&productionId=2%2F4259%2F0196%23001",
"templated": true
}
}
}
}
}
]
}
}
@caoilte
Copy link
Author

caoilte commented Aug 25, 2016

expected url something like

/platform//homepage/?features=blah&broadcaster=itv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment