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

12
LINES

< > BotCompany Repo | #1002229 // Slack users.setPresence test

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

Transpiled version (824L) is out of date.

1  
!752
2  
3  
static S token;
4  
5  
p {
6  
  token = devChannelToken();
7  
  S url = "https://slack.com/api/users.setPresence";
8  
  S presence = "auto"; // "away";
9  
  Map postData = litmap("token", token, "presence", presence);
10  
  S data = doPost(postData, url);
11  
  print(data);
12  
}

Author comment

Began life as a copy of #1001905

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: #1002229
Snippet name: Slack users.setPresence test
Eternal ID of this version: #1002229/1
Text MD5: b03f1d4ccf64929093abdc655af2ed9d
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-30 20:07:40
Source code size: 269 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 619 / 673
Referenced in: [show references]