Forum Discussion

kandulmadhu's avatar
10 years ago

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 the...
  • PaoloT's avatar
    10 years ago

    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,