Gursimrat
12 years agoLeader
How Do I fetch the new messages and total replies in a thread using REST API
We are customizing the layout of our board page and I need to fetch following using REST API in my new custom component: The number of NEW messages in the thread Total Replies Thanks
- 12 years ago
Hi Gursimrat,
Check the following:
1. For new messages in a topic use "messages/unread/count": http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=MessageDiscussion.messages.unread.count#MessageDiscussion.messages.unread.count
2a. for total replies in a topic use "replies/count" on the topic node: http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=MessageDiscussion.replies.count#MessageDiscussion.replies.count
2b. for total replies on a board use "replies/count" on the board node: http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Board.replies#Board.replies