Moderation
Block User#
Block 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 Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
Unblock User#
To unblock the User use the below method.
caution
If Block/unblock feature is unavailable for your plan, then it will throw 403 exception
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_USER_JID | JID of the To User | JID String | true |
Get Users I Blocked#
To get the list of Users whom we blocked, send a request as described below.
Response Format#
Get Users Who Blocked Me#
To get the list of Users who blocked Us, send a request as described below.
Response Format#
User/Group Blocked/Unblocked By Admin#
Handles 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.
Report User Or Group#
To Report a User or Group by another User.
caution
If Report feature is unavailable for your plan, then it will throw 403 exception
Request Params#
| Status | 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 Params#
| Arguments | Description | Type |
|---|---|---|
| statusCode | Status Code | Number |
| message | Success/Error Message | String |
Enable/Disable Media Encryption#
To enable/disable the media encryption which was storing in the storage server. By default encryption will be false.
Request Params#
| Status | Description | Type | Required |
|---|---|---|---|
REASON | true - enable the media encryption. false - disable the media encryption | Boolean | true |
Response Params#
| Arguments | Description | Type |
|---|---|---|
| statusCode | Status Code | Number |
| message | Success/Error Message | String |