Libraryless. Click here for Pure Java version (1181L/8K/26K).
1 | !752 |
2 | |
3 | static S token; |
4 | |
5 | p { |
6 | S eleuToken = loadSecretTextFileMandatory("#1001925", "eleu-slack-token").trim(); |
7 | token = eleuToken; |
8 | S url = "https://slack.com/api/channels.list"; |
9 | Map postData = litmap("token", token); |
10 | S data = doPost(postData, url); |
11 | Map map = jsonDecodeMap(data); |
12 | L<Map> channels = cast map.get("channels"); |
13 | for (Map c : channels) |
14 | print(c.get("id") + " " + c.get("name")); |
15 | } |
Began life as a copy of #1002120
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: | #1002717 |
Snippet name: | Run channels.list (eleu.slack.com) |
Eternal ID of this version: | #1002717/1 |
Text MD5: | f4b387e55eb222593a5c3bad9eb667e8 |
Transpilation MD5: | b15a2651b63734ef2182bffc605cc3f3 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-17 04:00:58 |
Source code size: | 423 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 686 / 677 |
Referenced in: | [show references] |