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).

1  
!7
2  
3  
p {
4  
  S token = celestiaToken();
5  
  S url = "https://slack.com/api/channels.list";
6  
  Map postData = litmap("token", token);
7  
  S data = doPost(postData, url);
8  
  Map map = jsonDecodeMap(data);
9  
  L<Map> channels = cast map.get("channels");
10  
  for (Map c : channels)
11  
    print(c.get("id") + " " + c.get("name"));
12  
}

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: 467 / 558
Referenced in: [show references]