Skip to main content
Version: 5.7.0

ListGroupsPageByOffset

Retrieve a page of group summary information based on the encoded context and specified page offset.

ServiceOperation
groupLIST_GROUPS_PAGE_BY_OFFSET

Method Parameters

ParameterDescription
contextThe context string returned from the server from a previous call to ListGroupsPage or ListGroupsPageByOffset
pageOffsetThe 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
string context = "eyJzZWFyY2hDcml0ZXJpYSI6eyJlbnRpdHlUeXBlIjp7IiRyZWdleCI6Ii4qaWxkLioiLCIkb3B0";
int pageOffset = 1;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.Group.ListGroupsPageByOffset(context, pageOffset, successCallback, failureCallback);
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"
}
}