Retrieve Group Details
#
Get All GroupsTo get the all groups that the user part of, send a request as described below.
#
Response Format:#
Get Group Profile DetailTo get the Profile detail of the group, send a request as described below. Once the request is made successfully, an groupProfileListener callback will be triggered and a group profile response will be received.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Grouop JID | JID String | true |
#
Download Profile ImageThis method is used to get the media file url when we download the profile image.
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
fileToken | File Url | String | true |
filekey | File key is optional param, which we get from the selected Media message Body | String | false |
#
Example Requests#
Response Format#
Get Group ParticipantsTo get the all the group members, send a request as described below.
#
Response Format:#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | Grouop JID | JID String | true |
#
Get Chat MessagesTo get the chat history of the selected user, send a request to the server as described below.
#
Response Format:Without Pagination
With Pagination
Example
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | JID of the To Group | JID String | true |
POSITION | Position for Pagination | String | false |
LAST_ROW_ID | Last Row ID of Pagination | String | false |
LIMIT | Pagination Limit | Number | false |
Note: POSITION - Accepts "down"/"up"
#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |
data | Array of Object datas | Array |
#
Get Group Media MessagesTo get the media messages for the particular groupchat. On initial request it fetches three media. Then on the pagination request by passing the last message-id, it fetches 10 next media messages.
#
Response Format:caution
If getMediaMessages feature is unavailable for your plan, then it will throw 403 exception
Without Pagination
With Pagination
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
TO_GROUP_JID | JID of the Group | JID String | true |
LAST_MESSAGE_ID | Last Message ID of Pagination | String | false |
#
Get Group Message InfoTo get the group message info use below method. It retrieves the message info with the number of group members has received and seen the message. Once the request is made successfully, an groupMsgInfoListener callback will be triggered and response will be received;
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
GROUP_JID | JID of the Group | JID String | true |
MESSAGE_ID | Message ID | String | true |