Libraryless. Click here for Pure Java version (1110L/8K/25K).
!752 static S token; p { token = devChannelToken(); S url = "https://slack.com/api/im.list"; Map postData = litmap("token", token); S data = doPost(postData, url); print(data); Map map = jsonDecodeMap(data); List<Map> ims = cast map.get("ims"); new L<S> names; for (Map m : ims) { S userID = getString(m, "user"); //print("userID = " + userID); S userName = slackGetUserName(token, userID); names.add(userName); } print("IM Users: " + join(", ", names)); }
Began life as a copy of #1002230
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: | #1002231 |
Snippet name: | Slack im.list test (list private message channels) |
Eternal ID of this version: | #1002231/1 |
Text MD5: | 5bfb8af2d96439cfc2199a12bd514e8f |
Transpilation MD5: | 072af97cabbed5f65235c9f67fc43eec |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-12-30 20:14:50 |
Source code size: | 518 bytes / 21 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 577 / 603 |
Referenced in: | #3000382 - Answer for ferdie (>> t = 1, f = 0) |