Skip to main content
Version: 5.7.0

ReadGroupMembers

Read the members of the group.

ServiceOperation
groupREAD_MEMBERS_OF_GROUP

Method Parameters

ParameterDescription
groupIdID of the group

Usage

http://localhost:3000
string groupId = "a-group-id";
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.ReadGroupMembers(groupId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"ee8cad26-16f2-4ef8-9045-3aab84ce6362": {
"role": "OWNER",
"attributes": {},
"playerName": "Peter",
"emailAddress": "klug@bitheads.com",
"pic": "https://some.domain.com/mypicture.jpg",
"summaryFriendData": {
"xp": 12,
"attributeName": "value"
}
},
"295c510f-507f-4bcf-80e1-ebc73708ec3c": {
"role": "MEMBER",
"attributes": {},
"playerName": "Billy",
"emailAddress": "billy@bitheads.com",
"pic": null
}
}
}