Libraryless. Click here for Pure Java version (1206L/9K/28K).
!752 static S token; p { token = loadSecretTextFileMandatory("#1001925", "devchat-test-token").trim(); S url = "https://slack.com/api/channels.list"; Map postData = litmap("token", token); S data = doPost(postData, url); Map map = jsonDecodeMap(data); L<Map> channels = cast map.get("channels"); for (Map c : channels) print(c.get("id") + " " + c.get("name")); }
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: | 636 / 624 |
Referenced in: | [show references] |