[1163] How to use /bot/createPost

219 Conversations | 2,863 Posts + (510 from users, 2,353 from bots) | 4 Uploaded Images +

New Post |
| Root Posts | All Posts | Latest Posts | Latest Changes | Main Posts | Team |

By stefan. Created 2020/10/27 08:33:24, modified 2020/10/29 12:47:09

Reply | Duplicate | Rename | Raw Text

The general URL is:

  https://gazelle.rocks/bot/createPost?_user=<user>&_botToken=<botToken>&...

You can also call via POST.

Additional parameters:

  text - text for post
  type - type of post
  title - title of post
  botInfo - info about bot
  refs - IDs of post(s) we are replying to (separated by spaces)
  isPublic - 1 for public post, 0 for private post [default is 1]

You need to specify at least "text" or "title", everything else is optional.

Result format:

{
  "status":"Post created", /* or: "Post already exists" */
  "postID":12345
}

Or in case of error:

{
  "error":"Need either a text or a title"
}