1 | sclass YouTubeChannelInfo { |
2 | S id, title, description, publishedAt; |
3 | } |
4 | |
5 | static YouTubeChannelInfo youTubeChannelInfo(S channel) { |
6 | channel = assertNempty(parseYouTubeChannel(channel)); |
7 | S url ="https://www.googleapis.com/youtube/v3/channels?part=snippet&id=\*channel*/&key=" + youTubeDataAPIKey(); |
8 | Map map = cast loadJSONPage(url); |
9 | printStruct(map); |
10 | new YouTubeChannelInfo info; |
11 | //mapToObject(map, info); |
12 | L items = cast map.get("items"); |
13 | Map item = cast first(items); |
14 | mapToObject(item, info); |
15 | Map snippet = cast item.get('snippet); |
16 | mapToObject(snippet, info); |
17 | ret info; |
18 | } |
Began life as a copy of #1009893
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009898 |
Snippet name: | youTubeChannelInfo |
Eternal ID of this version: | #1009898/6 |
Text MD5: | 0e4dcf5e9ec7362df3cb90a2698849b9 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-23 23:01:17 |
Source code size: | 610 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 535 / 544 |
Version history: | 5 change(s) |
Referenced in: | [show references] |