Cisco Unity Connection Imaging Interface (CUII) API -- Using CUII for Getting Message Specific Information
From DocWiki
Links to Other API pages: Cisco_Unity_Connection_APIs
| CUII Contents |
| API Overview Using CUII for Getting the Message Status Using CUII for Getting Message Specific Information Using CUII to View the Current MWI Status Using CUII to Get the Current Status of a Message Error Handling |
Using CUII for Getting Message Specific Information
GET https://<connection-server>/vmrest/mailbox/folders/inbox/<user-alias>/notification?messageid=<messageid
The above request returns the message specific information, that is message state and message state image URL along with the unread count, unread urgent count, MWI status, MWI image URL for the INBOX folder.
The following is the sample response from the above GET request. The values can differ depending on the state of the mailbox and the message. Note that for deleted, invalid, or non existing message IDs, the message state is DELETED.
<NotificationInformation> <UnreadMsgCount>2</UnreadMsgCount> <UnreadUrgentMsgCount>0</UnreadUrgentMsgCount> <Mwi>ON</Mwi> <MwiImageUrl> /vmrest/mailbox/folders/inbox/<user_alias>/mwistatusimage </MwiImageUrl> <MsgState>Unread</MsgState> <MsgStateImageUrl> /vmrest/mailbox/folders/inbox/<user_alias>/msgstateimage?messageid=<msgid> </MsgStateImageUrl> </NotificationInformation>