Get members

To get all the members of a group use below API.

info

{your-domain-name} can be obtained from the MirrorFly console.

HTTP request#

curl -X GET "https://{your-domain-name}/api/v1/group/view/groupMembers?groupId=xxxxx&page=xxx&size=xxx"
-H "accept: */*"
-H "Authorization: xxxxxxxxxxxxxxxxxx"

Request Params#

ParamDataTypeRequiredDescription
groupidStringYesId of the group to get its members
pageNumberNoPage number to get the particular page data
sizeNumberNoNumber of chats per page

Responses#

If successful, this action returns encrypted details of members of this group.

{
"data": {
"vcardList": [
{
"userId": "jzj1itm2qk",
"image": "",
"status": "I am in MirrorFly",
"mobileNumber": "HGECPSt0d5zpQ43ks4t7EA==",
"email": "bGMtQ8xVS9hjKDYo3x8ASHDxWkihP7Xjwz9dgB8hp3c=",
"isAdminBlocked": 0
}
],
"totalPages": 1,
"totalRecords": 3
},
"message": "Data retrieved successfully"
}

Error#

In the case of an error, an error object like below is returned.

When the token passed in Headers is expired

{
"status": 401,
"message": "Token Expired"
}

In the case of a Bad Request, an error message is returned

{
"status": 400,
"message": "Error Message"
}