Libraryless. Click here for Pure Java version (1062L/7K/24K).
1 | !752 |
2 | |
3 | static S token; |
4 | |
5 | p { |
6 | token = devChannelToken(); |
7 | S url = "https://slack.com/api/channels.list"; |
8 | Map postData = litmap("token", token); |
9 | S data = doPost(postData, url); |
10 | Map map = jsonDecodeMap(data); |
11 | L<Map> channels = cast map.get("channels"); |
12 | for (Map c : channels) |
13 | print(c.get("id") + " " + c.get("name")); |
14 | } |
Began life as a copy of #1001938
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1002120 |
Snippet name: | Run channels.list (devchannel.slack.com) |
Eternal ID of this version: | #1002120/1 |
Text MD5: | 51d061d376df3351ee8fdf95ce2a8c8c |
Transpilation MD5: | 227991a878bd18e73cd80f6ea5f53661 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-01-04 19:07:53 |
Source code size: | 346 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 626 / 637 |
Referenced in: | [show references] |