sS youTubeGetLiveStreamID(S videoID) { videoID = extractYouTubeID(videoID); S url = "https://www.googleapis.com/youtube/v3/videos?part=liveStreamingDetails&id=" + urlencode(videoID) + "&key=" + youTubeDataAPIKey(); Map map = cast loadJSONPage(url); printStruct(map); L<Map> items = cast map.get('items); Map item = first(items); if (item == null) null; Map details = cast item.get('liveStreamingDetails); ret getString(details, 'activeLiveChatId); }
Began life as a copy of #1020355
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020356 |
| Snippet name: | youTubeGetLiveStreamID [works] |
| Eternal ID of this version: | #1020356/9 |
| Text MD5: | 165ba85c0ad5f719444e731b0aeee557 |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-16 18:25:56 |
| Source code size: | 477 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 578 / 617 |
| Version history: | 8 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |