kandulmadhu
10 years agoAdvisor
REST API for count of unread posts
Hi,
The following is the call for getting count of unread messages in a thread:
http://community.lithium.com/community-name/restapi/vc/threads/id/[id]/messages/unread/count
Similarly, is there any REST API call for getting count of unread posts in a particular category/board w.r.t. logged in user?
Thanks and regards,
Madhu
Hi kandulmadhu
I haven't seen that one, but there is a call for # of messages read by the user. So you can subtract that from the total to get the unread count. I would suggest using a macro for this and caching the result for some time to avoid running too many calls.
Thanks,