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

13
LINES

< > TinyBrain | #1002229 - Slack users.setPresence test

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

Transpiled version (824L) is out of date.

!752

static S token;

p {
  token = devChannelToken();
  S url = "https://slack.com/api/users.setPresence";
  S presence = "auto"; // "away";
  Map postData = litmap("token", token, "presence", presence);
  S data = doPost(postData, url);
  print(data);
}

Author comment

Began life as a copy of #1001905

download  show line numbers  debug dex   

Travelled to 8 computer(s): cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, mqqgnosmbjvj, onxytkatvevr, teubizvjbppd, tslmcundralx, tvejysmllsmz

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 / 13 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 213 / 188
Referenced in: [show]