iahiqosolutions
13 years agoAdvisor
Private messaging via REST API
I do apologize if this has already been asked and answered (I looked through support and knowledge base but couldn't find it).
I want to implement private messaging functionality via REST API.
I have already found how to:
- Send private message
- Delete private message
- Get only unread messages
- Get all in- and out- box messages
- Change message status on "Read"
But I cannot find methods in REST API for the following:
- Change message status on "Unread" or "New"
- Get message status("Read", "Unread" or "New")
- Sort private messages in the inbox or outbox by Sent or Received date(Descending and Ascending)
- Sort private messages in the inbox or outbox by Subject(Descending and Ascending)
Could you please tell me, are these methods exist in REST API?
Hi iahiqosolutions,
Regarding the methods you could not find:
- Change message status on "Unread" or "New"
- The "Note" class has a "markread" method. There doesn't appear to be a way to mark it new/unread.
- Get message status("Read", "Unread" or "New")
- There's no method or attribute to get the status directly; however, you can retreive only unread messages using the "mailbox/notes/inbox/unread" method on the "User" class.
- Sort private messages in the inbox or outbox by Sent or Received date(Descending and Ascending)
- Sort private messages in the inbox or outbox by Subject(Descending and Ascending)
- There currently are not parameters available for sorting the notes in the response.
Regards,
Adam