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

9
LINES

< > BotCompany Repo | #1026231 // viber_setWebHook

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3987L/27K).

static Map viber_setWebHook(S token, S url) {
  ret jsonDecodeMap(doPostJSONWithHeaders(
    jsonEncode(litmap(
      +url,
      send_name := "true",
      send_photo := "true")),
    "https://chatapi.viber.com/pa/set_webhook",
    "X-Viber-Auth-Token" := token));
}

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: 190 / 287
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1026234 - viber_sendMessage