Retrieve Messages
note
To generate your own or others JID using the unique username got in registration response, use the const userJid = SDK.getJid(USER_ID) method.
#
Get Chat MessagesTo fetch all the conversation between you and a single chat user or group, call the below method.
Example
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
toJid | JID of the To User/Group | String | true |
PAGE | Page Number (default = 1) | String | optional |
SIZE | Size of the page (default = 20) | String | optional |
#
Response Format#
Notification types for handle in UI#
Download MediaThis method is used to get the media file url when we download the media.
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
fileToken | File Url | String | true |