Moderation
#
Block UserBlock User method uses to block the User from sending a message to us, it also hides our information from them. Use the below method by passing the JID
of the user whom we are blocking.
caution
If Block/unblock feature is unavailable for your plan, then it will throw 403 exception
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
#
Unblock UserTo unblock the User use the below method.
caution
If Block/unblock feature is unavailable for your plan, then it will throw 403 exception
#
Request ParamStatus | Description | Type | Required |
---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
#
Get Users I BlockedTo get the list of Users whom we blocked, send a request as described below.
#
Response Format#
Get Users Who Blocked MeTo get the list of Users who blocked Us, send a request as described below.
#
Response Format#
User/Group Blocked/Unblocked By AdminHandles Blocked/Unblocked response from Admin Console for the user/group. This response is triggered when the console admin particularly blocks/unblocks an user/group in Callback adminBlockListener . Receives Blocked User/groups 's UserId and Jid with blocked status.
#
Mute ChatTo Mute the chat use below method which disables the notification for the chat when the new messages are received or any action on group chat.
Status | Description | Type | Required |
---|---|---|---|
TO_JID | JID of the To User/Group | JID String | true |
IS_MUTED | true for muting the chat, false for removing | Boolean | true |
#
Report User Or GroupTo Report a User or Group by another User.
caution
If Report feature is unavailable for your plan, then it will throw 403 exception
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
TO_USER_JID | JID of User/Group to be reported | JID String | true |
CHAT_TYPE | Chat type either User/Group | String | true |
ARRAY_OF_MESSAGE_OBJECT | Message data Object that has to reported | Array of Object | true |
#
Sample request Format#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |
#
Enable/Disable Media EncryptionTo enable/disable the media encryption which was storing in the storage server. By default encryption will be false.
#
Request ParamsStatus | Description | Type | Required |
---|---|---|---|
REASON | true - enable the media encryption. false - disable the media encryption | Boolean | true |
#
Response ParamsArguments | Description | Type |
---|---|---|
statusCode | Status Code | Number |
message | Success/Error Message | String |