Libraryless. Click here for Pure Java version (1206L/9K/28K).
1 | !752 |
2 | |
3 | static S token; |
4 | |
5 | p { |
6 | token = loadSecretTextFileMandatory("#1001925", "devchat-test-token").trim(); |
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 #1002717
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: | #1003014 |
Snippet name: | Run channels.list (devchat-test) |
Eternal ID of this version: | #1003014/1 |
Text MD5: | 3359df3be46dfc9cfc43af7e33230083 |
Transpilation MD5: | 3b11f3015271ee35570c7f49a49dbbbf |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-18 22:31:57 |
Source code size: | 397 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 638 / 628 |
Referenced in: | [show references] |