Retrieve Profile Details
#
Get User Profile DetailTo get the Profile detail of the user, send a request as described below.
#
Request ParamStatus | 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.
#
Get User's Last Seen TimeTo get the user's last seen, send a request as described below.
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
#
Response Format:#
User ListTo retrieve all registered users on MirrorFly SDK use below method. User list can also be retrieved based on search key word, also this method supports pagination. This function will return the total number of pages.
warning
User presence and Profile instant update will not happen until a message is sent to that particular user.
#
Request ParamsArguments | Description | Type | Required |
---|---|---|---|
NAME | Name to search against the name default value is empty | String | false |
PAGE | Page to get the particular pages default value is 1 | Number | false |
LIMIT | Limit to set the number of users per page default value is 20 | Number | false |
#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |
users | Array of Users Object | Array |
#
Response Format:#
Get Current User JidTo get the Jid of the logged in user.
#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |
userJid | JID of the User | JID String |
#
Get User TokenGenerates and retrives new usertoken to access the API.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
USERNAME | Username | String | true |
PASSWORD | Password | String | true |
#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |
userToken | User Token | String |