pbaye
13 years agoContributor
Unread Private Messages Count in external Application
Hi all,
I would like to display how many private messages are not read yet by the connected community member, on the home page of my standard web application.
So, i think there are 2 possibility : ActiveCast or REST API
But i dont' find any information about how to do for "private message".
Anybody has a solution ?
Hi pbaye,
There are multiple "mailbox/notes" methods available in the User class of the REST API. These correspond to the private messenger you see in the UI. To get the unread count for a specific user, ie. user with the id 43, your call would look like this:
<base URL for your community>/restapi/vc/users/id/43/mailbox/notes/inbox/unread/count
I hope this helps!