SysListGroupsPageByOffset
Retrieve a page of group summary information based on the encoded context and specified page offset, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_LIST_GROUPS_PAGE_BY_OFFSET |
Method Parameters
Parameter | Description |
---|---|
context | The context string returned from the server from a previous call to ListGroupsPage or ListGroupsPageByOffset |
pageOffset | The positive or negative page offset to fetch. Uses the last page retrieved using the context string to determine a starting point. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var context = "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0";
var pageOffset = 1;
var groupProxy = bridge.getGroupServiceProxy();
var postResult = groupProxy.sysListGroupsPageByOffset(context, pageOffset);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_LIST_GROUPS_PAGE_BY_OFFSET",
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0",
"pageOffset": 1
}
}
JSON Response
{
"status": 200,
"data": {
"results": {
"moreBefore": true,
"count": 2,
"items": [
{
"groupType": "test",
"groupId": "1d1abb61-8825-4374-a52a-d8186f336775",
"isOpenGroup": false,
"requestingPendingMemberCount": 0,
"invitedPendingMemberCount": 0,
"ownerId": "29696ee1-82f6-4d6e-86de-b68c3a5c347e",
"name": "test",
"memberCount": 1
}
],
"page": 2,
"moreAfter": false
},
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJncm91cFR5cGUiOiJ0ZXN0IiwiZ2FtZUlk"
}
}