Messenger room messages

Resource type: messengerentriesroom

Returns all messages of a messenger room. Specify the unique identifier (uid) of the messenger room as resourceid.

Parameters: none

Example: read out all messages from a messenger room

...
{
    "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
    "resourceid": "151977",
    "identifier": "",
    "resourcetype": "messengerentriesroom",
    "parameters": []
}
...
Response parameters:
  • messageId. INTEGER. Message ID
  • senderId. INTERGER. Sender ID
  • receiverId. STRING. Receiver ID
  • date. DATE. Date of the message
  • message. STRING. Message
  • isRead. BOOLEAN. 1 if message is read, 0 if message is unread. Functionality of the parameter is not yet implemented.

Response: read out all messenger rooms

{
    "status": {
        "code": 200,
        "errorcode": 0,
        "message": "OK"
    },
    "response": {
        "results": [
            {
                "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
                "resourceid": "151977",
                "resourcetype": "messengerentriesroom",
                "cacheable": false,
                "identifier": "",
                "data": {
                    "meta": {
                        "cntabsolute": 26
                    },
                    "records": [
                        {
                            "id": 0,
                            "type": "",
                            "elements": {
                                "messageId": 3246951,
                                "senderId": 137741,
                                "receiverId": 151977,
                                "date": "2019-09-30 15:21:17",
                                "message": "hi",
                                "isRead": "0"
                            }
                        },
                        {
                            "id": 1,
                            "type": "",
                            "elements": {
                                "messageId": 3246953,
                                "senderId": 78667,
                                "receiverId": 151977,
                                "date": "2019-09-30 15:21:24",
                                "message": "huhu",
                                "isRead": "0"
                            }
                        }
                    ]
                },
                "status": {
                    "errorcode": 0,
                    "message": "OK"
                }
            }
        ]
    }
}