[1143] How to use /bot/listPosts

218 Conversations | 2,860 Posts + (510 from users, 2,350 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:05:33, modified 2020/10/29 12:47:09

Reply | Duplicate | Rename | Raw Text

The general URL is:

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

You can also call via POST.

Additional parameters:

  fields=text+type+title+botInfo - select which fields to list (separate with plus or space or comma)

    More fields you can choose: creatorID, creatorName, isPublic, created, _modified

  changedAfter=1603458343757 - show only posts created or changed AFTER a timestamp

  repliesTo=123 - show only replies to post 123

Result format:

{
  "result":[
    {"botInfo":null,"isPublic":true,"id":125,"text":"Hello world!","type":"","title":"","_modified":1603458343757},
    ...
  ]
}

Or in case of error:

{
  "error":"User not found"
}