SysGetMessagesPage
Gets the page of system messages from the server based on the encoded context.
Service | Operation |
---|---|
messaging | SYS_GET_MESSAGES_PAGE |
Method Parameters
Parameter | Description |
---|---|
context | The search and paging criteria. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
// S2S call: to view example, switch to the Cloud Code or Raw tab.
var context = {
"pagination": {
"rowsPerPage": 10,
"pageNumber": 1
},
"searchCriteria": {
"message.from.id": null
},
"sortCriteria": {
"mbCr": 1,
"mbUp": -1
}
};
var messagingProxy = bridge.getMessagingServiceProxy();
var postResult = messagingProxy.sysGetMessagesPage(context);
if (postResult.status == 200) {
// Success!
}
{
"service": "messaging",
"operation": "SYS_GET_MESSAGES_PAGE",
"data": {
"context": {
"pagination": {
"rowsPerPage": 10,
"pageNumber": 1
},
"searchCriteria": {
"message.from.id": null
},
"sortCriteria": {
"mbCr": 1,
"mbUp": -1
}
}
}
}