Skip to main content
Version: 5.7.0

ListGroupsPage

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

ServiceOperation
groupLIST_GROUPS_PAGE

Method Parameters

ParameterDescription
contextThe JSON context for the page request

Usage

http://localhost:3000
string context = "{\"pagination\":{\"rowsPerPage\":50,\"pageNumber\":1},\"searchCriteria\":{\"groupType\":\"BLUE\"},\"sortCriteria\":{\"createdAt\":1,\"updatedAt\":-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.ListGroupsPage(context, successCallback, failureCallback);
JSON Response
// Context example
{
"data": {
"context": "eyJzZWFyY2hDcml0ZXJpYSI6eyJnYW1lSWQiOiIxMzIyOSJ9LCJzb3J0Q3JpdGVyaWEiOnt9LCJwYWdpbmF0aW9uIjp7InJvd3NQZXJQYWdlIjo1MCwicGFnZU51bWJlciI6MSwiZG9Db3VudCI6dHJ1ZSwic2tpcFJlY291bnQiOmZhbHNlfSwib3B0aW9ucyI6bnVsbCwicmVzdWx0Q291bnQiOjF9",
"results": {
"count": 1,
"page": 1,
"items": [
{
"groupType": "group11",
"groupId": "d373ff92-3327-4176-85ed-3565a09c43fa",
"memberCount": 2,
"name": "agroup",
"invitedPendingMemberCount": 0,
"requestingPendingMemberCount": 0,
"ownerId": "8bd564a7-3f91-4a98-a4b3-43cd7d266133",
"summaryData": {},
"isOpenGroup": true
}
],
"moreAfter": false,
"moreBefore": false
}
},
"status": 200
}