Libraryless. Click here for Pure Java version (3945L/26K).
sbool postServerCountToMythicalBotsXYZ(long clientID, S apiKey, int serverCount) { S url = "https://mythicalbots.xyz/api/bot/" + clientID; doPost_extraHeaders.set(litmap(authorization := assertNempty("API key", apiKey))); Map map = jsonDecodeMap(print(postPage(url, server_count := serverCount))); if (empty(mapGet(map, "success"))) ret false with print("WARNING: mythicalbots.xyz server count updated failed"); true; }
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: | #1025828 |
Snippet name: | postServerCountToMythicalBotsXYZ |
Eternal ID of this version: | #1025828/2 |
Text MD5: | 89eb1a9e1fe37ca48da32f4b4905a8c0 |
Transpilation MD5: | 82513f828c18e1cc6c59a4a65696688f |
Author: | stefan |
Category: | javax / bots |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-24 13:23:25 |
Source code size: | 440 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 311 |
Version history: | 1 change(s) |
Referenced in: | [show references] |