static Map<S, S> slackGetChannelIDs(S token) { S url = "https://slack.com/api/channels.list"; Map postData = litmap("token", token); S data = doPostWithTimeout(postData, url, slackSetTimeout_get()); Map map = jsonDecodeMap(data); L<Map> channels = cast map.get("channels"); new Map<S, S> out; for (Map c : channels) { S id = getString(c, "id"); S name = getString(c, "name"); out.put(name, id); } ret out; }
Began life as a copy of #1002121
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: | #1002170 |
Snippet name: | slackGetChannelIDs |
Eternal ID of this version: | #1002170/1 |
Text MD5: | 1977cefd1a1ce0400ccb27d8b607db56 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-04-02 20:15:12 |
Source code size: | 452 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 645 / 936 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1002659 - slack bla #1002663 - slackGetChannelID #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |