Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 26729

API Get latest messages from a channel

$
0
0

You have api/v1/channels/<channel id>/posts/<offset>/<limit> which will get a set number of posts (specified by <limit>) from the channel, offset from the latest by a set number (specified by <offset>).
For example, api/v1/channel/<channel id>/posts/5/10 would get 10 posts, skipping over the latest 5.

There is also api/v1/channels/<channel id>/posts/<UNIX timestamp> that will get all posts created or modified since the date specified.

If you want live updates, its better to set up a WebSocket connection. Then you will get near-instant notifications of new and edited posts, among other things. Let me know if that's what you want and I can give a quick rundown of it.


Viewing all articles
Browse latest Browse all 26729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>