Libraryless. Click here for Pure Java version (169L/2K/6K).
1 | !752 |
2 | |
3 | static S token; |
4 | static S channelID = "C0FH9PY8J"; // #talkingbots |
5 | static S text = "Another bot test"; |
6 | static S username = "bot me"; |
7 | |
8 | p { |
9 | token = "xoxp-11444506721-15584660016-15602755169-10849bef29"; |
10 | S url = "https://slack.com/api/chat.postMessage"; |
11 | S postData = "token=" + urlencode(token) + "&channel=" + urlencode(channelID) + "&text=" + urlencode(text) |
12 | + "&username=" + urlencode(username); |
13 | S data = doPost(postData, url); |
14 | print(data); |
15 | } |
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: | 568 / 654 |
Referenced in: | [show references] |