Libraryless. Click here for Pure Java version (3990L/27K).
1 | static Map viber_sendMessage(S token, S senderName, S receiverViperID, S text) {
|
2 | ret jsonDecodeMap(doPostJSONWithHeaders( |
3 | jsonEncode(litmap( |
4 | receiver := receiverViperID, |
5 | type := "text", |
6 | "sender.name" := senderName, |
7 | +text)), |
8 | "https://chatapi.viber.com/pa/send_message", |
9 | "X-Viber-Auth-Token" := token)); |
10 | } |
Began life as a copy of #1026231
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1026234 |
| Snippet name: | viber_sendMessage |
| Eternal ID of this version: | #1026234/2 |
| Text MD5: | 61e1c55ddbcad9113fc8cac72c1dab78 |
| Transpilation MD5: | f186eb745e2e0cc51f186e9c507b92dc |
| Author: | stefan |
| Category: | javax / viber |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-12-07 14:00:07 |
| Source code size: | 350 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 421 / 553 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |