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

12
LINES

< > BotCompany Repo | #1001916 // Try getting Slack user names

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

Libraryless. Click here for Pure Java version (302L/3K/8K).

!752

static S token;
static S userID = "U0FF6RTT8";

p {
  token = loadSecretTextFileMandatory("#1001889", "relp-slack-botstuff-token").trim();
  S url = "https://slack.com/api/users.info";
  S postData = "token=" + urlencode(token) + "&user=" + urlencode(userID);
  S data = doPost(postData, url);
  print(data);
}

Author comment

Began life as a copy of #1001889

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: #1001916
Snippet name: Try getting Slack user names
Eternal ID of this version: #1001916/1
Text MD5: 37d096b14e8f93ad056945cb5b13a47d
Transpilation MD5: ad429277c754e785c13fcc445d8f7993
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-06 19:50:11
Source code size: 329 bytes / 12 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 569 / 596
Referenced in: [show references]