AddUsersToBlacklist
https://zim-api.zego.im/
By calling this API, you can batch block up to 20 users for a user, and no longer receive messages from related users. If you need to increase the limit, please contact ZEGOCLOUD Technical Support.
Each user can block a maximum of 1000 users by default. If you need to increase the limit, please contact ZEGOCLOUD Technical Support.
After successfully blocking users for a user, this user's client will receive blocklist update notifications through the following ZIM SDK callback interface:
| iOS | Android | macOS | Windows |
|---|---|---|---|
| blacklistChanged | onBlacklistChanged | blacklistChanged | onBlacklistChanged |
| Web | Mini Program | Flutter | React Native |
|---|---|---|---|
| blacklistChanged | blacklistChanged | onBlacklistChanged | blacklistChanged |
| uni-app | uni-app x | HarmonyOS |
|---|---|
| blacklistChanged | blacklistChanged |
The users corresponding to the parameters FromUserId and UserIds have logged in to the ZIM service by calling the login method on the client, or have completed registration by calling the server-side API.
'!', '#', '$', '%', '&', '(', ')', '+', '-', ':', ';', '<', '=', '.', '>', '?', '@', '[', ']', '^', '_', '{', '}', '|', '~'Request
Query Parameters
Possible values: [AddUsersToBlacklist]
API prototype parameter
https://zim-api.zego.im/?Action=AddUsersToBlacklist
💡Public parameter. Application ID, assigned by ZEGOCLOUD. Get it from the ZEGOCLOUD Admin Console.
💡Public parameter. A 16-character hexadecimal random string (hex encoding of 8-byte random number). Refer to Signature example for how to generate.
💡Public parameter. Current Unix timestamp, in seconds. Refer to Signature example for how to generate, with a maximum error of 10 minutes.
Possible values: [2.0]
Default value: 2.0
💡Public parameter. Signature version number.
💡Public parameter. Signature, used to verify the legitimacy of the request. Refer to Signing the requests for how to generate an API request signature.
- application/json
Responses
- 200
- application/json
