Retrieve Profile Details
Get User Profile Detail#
To get the Profile detail of the user, send a request as described below.
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
Response Format:#
note
userprofilelistener also will be triggered with the same response.
Download Profile Image#
This method is used to get the media file url when we download the profile image.
Request Param#
| Status | 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 User's Last Seen Time#
To get the user's last seen, send a request as described below.
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
Response Format:#
Get Current User Jid#
To get the Jid of the logged in user.
Response Params#
| Arguments | Description | Type |
|---|---|---|
| statusCode | Status Code | Number |
| message | Success/Error Message | String |
| userJid | JID of the User | JID String |
Get User Token#
Generates and retrives new usertoken to access the API.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
USERNAME | Username | String | true |
PASSWORD | Password | String | true |
Response Params#
| Arguments | Description | Type |
|---|---|---|
| statusCode | Status Code | Number |
| message | Success/Error Message | String |
| userToken | User Token | String |