SysReadGroupEntitiesPageByOffset
Retrieve a page of group entity information based on the encoded context and specified page offset, bypassing ownership/ACL checks.
Service | Operation |
---|---|
group | SYS_READ_GROUP_ENTITIES_PAGE_BY_OFFSET |
Method Parameters
Parameter | Description |
---|---|
context | The context string returned from the server from a previous call to ReadGroupEntitiesPage or ReadGroupEntitiesPageByOffset |
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.sysReadGroupEntitiesPageByOffset(context, pageOffset);
if (postResult.status == 200) {
// Success!
}
{
"service": "group",
"operation": "SYS_READ_GROUP_ENTITIES_PAGE_BY_OFFSET",
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0",
"pageOffset": 1
}
}
JSON Response
{
"status": 200,
"data": {
"_serverTime": 1637946319239,
"results": {
"moreBefore": true,
"count": 3,
"items": [
{
"gameId": "20595",
"groupId": "fee55a37-5e86-43e8-942e-06bcbe1b701e",
"entityId": "ccbf996c-9e96-4935-b570-eebaab81c75a",
"ownerId": null,
"entityType": "RED",
"createdAt": 1462812845384,
"updatedAt": 1462812845384,
"version": 1,
"data": {
"third": true
},
"acl": {
"member": 2,
"other": 1
}
}
],
"page": 2,
"moreAfter": false
},
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJncm91cElkIjoiZmVlNTVhMzctNWU4Ni00M2U4LTk"
}
}