Fetch the list of groups that are muted in the app
Description
This API is used to query the IDs of all groups that are muted in the app, including groups that are muted globally, by group roles, or by user IDs.
This API returns 10,000 groups by default each time. If you need to adjust this, please contact ZEGO technical support.
Request method and endpoint
- Request method: POST
- Request URL:
https://zim-api.zego.im/?Action=FetchForbidGroupList
- Protocol: HTTPS
- Rate limit: 20 requests/second
Request parameters
Listed below are the parameters specific to this request and part of the common request parameters. For the complete list of common request parameters, see Accessing Server APIs - Common parameters.
Parameter | Type | Required | Description |
---|---|---|---|
FromUserId | String | Yes | The user ID of the queryer. (The user has logged in ZIM service through the login method in the client, or has completed registration through the server API.) |
StartFlag | Number | Yes | The pagination flag. Fill 0 for the first time, and fill the NextFlag value returned last time for subsequent calls. When the NextFlag is 0, it means that the group list has been fetched. |
Request example
- Request URL:
Untitled
https://zim-api.zego.im/?Action=FetchForbidGroupList
&<Common request parameters>
1
- Request body:
Untitled
{
"FromUserId": "userId",
"StartFlag": 0
}
1
Response parameters
Parameter | Type | Description |
---|---|---|
Code | Number | Return code. |
Message | String | Operation result description. |
RequestId | String | Request ID. |
FetchEnd | Number | Whether the list has been fetched:
|
NextFlag | Number |
|
GroupList | Array of Object | The list of groups that are muted. |
└GroupId | String | The group ID. |
└ForbidType | Number | The type of mute:
|
Response example
Untitled
{
"Code": 0,
"Message": "success",
"RequestId": "343649807833778782",
"FetchEnd": 1,
"NextFlag": 100000,
"GroupList": [
{
"GroupId": "group_1",
"ForbidType": 1
},
{
"GroupId": "group_2",
"ForbidType": 5
}
]
}
1
Return codes
The following return codes are only listed for the interface business logic. For the complete list of return codes, see Global return codes.
Return code | Description | Solution |
---|---|---|
660000002 | Invalid input parameters. | Please check the input parameters. |
660000003 | Logical processing error. | Please try again, or contact ZEGO technical support. |
660000011 | The number of users exceeds the limit. | Please check the input user list. |