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.

!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  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: 617 / 669
Referenced in: [show references]