Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1007828 // Run channels.list (buildingcoolstuff)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (3069L/21K/68K).

!7

p {
  S token = celestiaToken();
  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"));
}

Author comment

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: #1007828
Snippet name: Run channels.list (buildingcoolstuff)
Eternal ID of this version: #1007828/1
Text MD5: 600e46b2483e2778c610c8ba1c2024c3
Transpilation MD5: d992e4b6a07c65947438aee88d75542c
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-09 01:34:38
Source code size: 325 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 466 / 557
Referenced in: [show references]