https://console.tim.qq.com/v4/openconfigsvr/setnospeaking?sdkappid=88888888&identifier=admin&usersig=xxx&random=99999999&contenttype=json
The following table lists only the parameters to be modified when this API is called. For details on other parameters, see RESTful API Overview.
Parameter | Description |
---|---|
v4/openconfigsvr/setnospeaking | Request API |
sdkappid | SDKAppID assigned by the IM console when an app is created |
identifier | The value must be the app admin account. For details, see App Admins. |
usersig | Signature generated by the app admin account. For details, see Generating UserSig. |
random | A random 32-bit unsigned integer ranging from 0 to 4294967295 |
The maximum calling frequency is 200 times per second.
{
"Set_Account": "lumotuwe",
"C2CmsgNospeakingTime": 4294967295, // C2CmsgNospeakingTime and GroupmsgNospeakingTime are optional, but either of them must be specified.
"GroupmsgNospeakingTime": 7200
}
Field | Type | Attribute | Description |
---|---|---|---|
Set_Account | String | Required | Account for which muting will be enabled |
C2CmsgNospeakingTime | Integer | Optional | Muting period (in seconds) of one-to-one chat messages. The value is a non-negative integer, and the maximum value is 4294967295 (0xFFFFFFFF in hexadecimal format).
|
GroupmsgNospeakingTime | Integer | Optional | Muting period (in seconds) of group chat messages. The value is a non-negative integer, and the maximum value is 4294967295 (0xFFFFFFFF in hexadecimal format).
|
{
"ErrorCode": 0,
"ErrorInfo": "",
}
Field | Type | Description |
---|---|---|
ErrorCode | Integer | Request error code. 0: succeeded. Others: failed. |
ErrorInfo | String | Error information |
Unless a network error (such as error 502) occurs, the HTTP return code for this API is always 200. ErrorCode and ErrorInfo in the response packet represent the actual error code and error information, respectively.
For common error codes (60000 to 79999), see Error Codes.
The following table describes the error codes specific to this API.
Error Code | Description |
---|---|
130001 | Failed to parse the JSON request packet. To correct it, check whether the request packet meets JSON specifications. |
130004 | The JSON request packet does not contain the Set_Account field. |
130005 | The Set_Account field in the JSON request packet is invalid. |
130008 | Neither GroupmsgNospeakingTime nor C2CmsgNospeakingTime in the JSON request packet is specified. |
130014 | A system error occurred. To correct it, try again or contact our technical customer service. |
Use the online commissioning tool for RESTful APIs to commission this API.
Querying global muting (v4/openconfigsvr/setnospeaking)
Was this page helpful?