Libraryless. Click here for Pure Java version (1228L/9K/27K).
!752 answer { if match "list your im channels" { S 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); } ret "I have IM channels with: " + join(", ", names); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment