Resource type: messengerroomlist
Returns a list of messenger rooms.
Parameters: none
Example: read out all messenger rooms
... { "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:read", "resourceid": "", "identifier": "", "resourcetype": "messengerroomlist", "parameters": [] } ...Response parameters:
id
. INTEGER. Record IDuid
. INTERGER. Unique Identifiername
. STRING. Room nameisPublic
. BOOLEAN. True, if public room. False, if no public room. Default = false.lastSeenByAll
. DATETIME. Date and time on which all participants read the message. Date is empty if there are participants who have not yet read the message.lastMessage
. STRING. Last message.
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:read", "resourceid": "", "resourcetype": "messengerroomlist", "cacheable": false, "identifier": "", "data": { "meta": { "cntabsolute": null }, "records": [ { "id": 0, "type": "", "elements": { "id": "8179", "uid": "151977", "name": "Test-Chatraum1", "isPublic": false, "lastSeenByAll": "2019-10-15 15:37:51", "lastMessage": "Hallo Freunde!" } }, { "id": 1, "type": "", "elements": { "id": "8181", "uid": "151979", "name": "Test-Chatraum2", "isPublic": false, "lastSeenByAll": "2019-10-15 14:17:51", "lastMessage": "Ja, geht klar." } } ] }, "status": { "errorcode": 0, "message": "OK" } } ] } }