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

8
LINES

< > BotCompany Repo | #1029999 // gazelle_createPost

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

Transpiled version (4357L) is out of date.

static GazellePostCreated gazelle_createPost(GazelleBotCred cred, S text, S type, O... _) {
  Map result = cast postJSONPage(cred.server + "bot/createPost",
    paramsPlus(_, _user := cred._user, _botToken := cred._botToken,
    +text, +type, botInfo := cred.botInfo));
  S error = cast result.get("error");
  if (nempty(error)) fail(error);
  ret GazellePostCreated(toLong(result.get("postID")), (S) result.get("status"));
}

Author comment

Began life as a copy of #1029990

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029999
Snippet name: gazelle_createPost
Eternal ID of this version: #1029999/4
Text MD5: db94b662f5b5b3097349957d3806112b
Author: stefan
Category: javax / gazelle.rocks
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-15 21:48:03
Source code size: 432 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 345
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1030057 - gazelle_deletePosts
#1030331 - gazelle_editPost