Libraryless. Click here for Pure Java version (3987L/27K).
1 | static Map viber_setWebHook(S token, S url) { |
2 | ret jsonDecodeMap(doPostJSONWithHeaders( |
3 | jsonEncode(litmap( |
4 | +url, |
5 | send_name := "true", |
6 | send_photo := "true")), |
7 | "https://chatapi.viber.com/pa/set_webhook", |
8 | "X-Viber-Auth-Token" := token)); |
9 | } |
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: | #1026231 |
Snippet name: | viber_setWebHook |
Eternal ID of this version: | #1026231/4 |
Text MD5: | 34c09f9f891906446b94ceb25e6c63a9 |
Transpilation MD5: | 8073e353bf0b96b7958eacb58d5dbb40 |
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 13:28:13 |
Source code size: | 275 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 189 / 286 |
Version history: | 3 change(s) |
Referenced in: | [show references] |