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

13
LINES

< > BotCompany Repo | #1002658 // Android Slack Hello

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

Libraryless. Click here for Pure Java version (5472L/37K/121K).

1  
!7
2  
3  
p {
4  
  S token = loadSecretTextFile("#1002653", "slack-token.txt").trim();
5  
  S channelID = slackChannelID(token, "androiddev");
6  
  S url = "https://slack.com/api/chat.postMessage";
7  
  Map postData = litmap(
8  
    "token", token,
9  
    "channel", channelID,
10  
    "text", "hello",
11  
    "username", "eleu_android");
12  
  printStructure(jsonDecodeMap(doPost(printStructure(postData), url)));
13  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, nbgitpuheiab, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1002658
Snippet name: Android Slack Hello
Eternal ID of this version: #1002658/2
Text MD5: 6aa24b0c8cce11904ce3d252e66ab928
Transpilation MD5: e4643b1fc69088da6ec84d49e43373c3
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-01 11:27:09
Source code size: 393 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 468 / 492
Version history: 1 change(s)
Referenced in: [show references]