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

15
LINES

< > BotCompany Repo | #1001905 // Another Slack posting test

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

Libraryless. Click here for Pure Java version (169L/2K/6K).

!752

static S token;
static S channelID = "C0FH9PY8J"; // #talkingbots
static S text = "Another bot test";
static S username = "bot me";

p {
  token = "xoxp-11444506721-15584660016-15602755169-10849bef29";
  S url = "https://slack.com/api/chat.postMessage";
  S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID) + "&text=" + urlencode(text)
    + "&username=" + urlencode(username);
  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: #1001905
Snippet name: Another Slack posting test
Eternal ID of this version: #1001905/1
Text MD5: 76f13b66c8e9327f1d0f1343ac4e0da3
Transpilation MD5: 5b7ded976d407146083867743416d9a8
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-12-06 18:51:04
Source code size: 477 bytes / 15 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 435 / 484
Referenced in: [show references]