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

12
LINES

< > BotCompany Repo | #1001934 // Test channels.history on Slack (reading chat contents of nlbots/#talkingbots)

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

Libraryless. Click here for Pure Java version (661L/5K/17K).

1  
!752
2  
3  
m {
4  
  p {
5  
    S token = loadSecretTextFileMandatory("#1001925", "nlbots-slack-token").trim();
6  
  S channelID = "C0G5GPEMR";
7  
    S url = "https://slack.com/api/channels.history";
8  
    S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID);
9  
    S data = doPost(postData, url);
10  
    print(data);
11  
  }
12  
}

Author comment

Began life as a copy of #1001867

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: #1001934
Snippet name: Test channels.history on Slack (reading chat contents of nlbots/#talkingbots)
Eternal ID of this version: #1001934/1
Text MD5: a3fffb7a6fb483541b41876af4608220
Transpilation MD5: 85cf7241bdb7b58ebb89b29cbff16188
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-08 20:28:59
Source code size: 335 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 762 / 759
Referenced in: [show references]