Created
August 31, 2017 11:45
-
-
Save tomkershaw-bbc/d8719a441e32a028434636d6e43eb5e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"preset": true, | |
"services": [ | |
{ | |
"default_language": "en", | |
"short_title": "Radio 1", | |
"coverage": "national", | |
"id": "bbc_radio_one", | |
"date_ranges": [ | |
{ | |
"start": "1967-09-30T05:30:00Z", | |
"end": null | |
} | |
], | |
"default": true, | |
"region": "All Regions", | |
"title": "BBC Radio 1", | |
"type": "service", | |
"active": true | |
} | |
], | |
"short_title": "Radio 1", | |
"key": "radio1", | |
"id": "bbc_radio_one", | |
"international": true, | |
"date_ranges": [ | |
{ | |
"start": "1967-09-30T05:30:00Z", | |
"end": null | |
} | |
], | |
"title": "BBC Radio 1", | |
"sort": 10, | |
"type": "network", | |
"group": "radio", | |
"active": true, | |
"on_air_now" : | |
{ | |
"type": "broadcast", | |
"pid": "p05d57sq", | |
"start": "2017-08-31T09:00:00.000Z", | |
"end": "2017-08-31T11:45:00.000Z", | |
"service_id": "bbc_radio_one", | |
"duration": 9900, | |
"version_pid": "b09202f5", | |
"is_live": false, | |
"is_blanked": false, | |
"is_repeat": false, | |
"is_critical": false, | |
"is_audio_described": false, | |
"is_webcast": false, | |
} | |
} | |
// NOTES | |
* Removed categories - not needed | |
* Removed contacts - not needed, need to check with clients | |
* Added current broadcast - support for on air now | |
// ENDPOINTS | |
* /v2/networks.json - list of all networks | |
* /v2/networks/{network}.json - single network | |
// FILTERS | |
* ?preset=true|false - Give me the national and regional, mainly used for navigation. False by default. | |
* ?popups=true|false - Add the pop ups to the networks list. False by default | |
* ?international=true|false - Filter networks by international availability. True by default. | |
* ?worldservice=true|false - Add the world service networks to the list. False by default. | |
* ?region=national,regional,local - Get the networks you want by region. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment