https://xxxxxx/$ver/$servicename/$command?sdkappid=$SDKAppID&identifier=$identifier&usersig=$usersig&random=99999999&contenttype=json
Parameter | Meaning | Fetching Value |
https | Request protocol | The request protocol is HTTPS, and the request method is POST. |
xxxxxx | Request Domain | Others in China: console.tim.qq.comSingapore: adminapisgp.im.qcloud.comSilicon Valley: adminapiusa.im.qcloud.comJakarta: adminapiidn.im.qcloud.com |
ver | Protocol Version Number | Fixed as v4. |
servicename | Internal Service Name, different servicenames correspond to different service types | Example: v4/live_engine_http_srv/create_room, where room_engine_http_srv is the servicename. For more details, refer to the RESTful API List. |
command | Command Word, used in combination with the servicename to identify a specific business feature | Example: v4/live_engine_http_srv/create_room, where create_room is the command. For more details, refer to the RESTful API List |
sdkappid | Application Identifier obtained from the Chat console | Obtained when applying for integration. |
identifier | username, must be an App Administrator Account when calling RESTful APIs | |
usersig | password corresponding to username | |
random | Identifies the random number parameter for the current request | A 32-bit unsigned integer random number, ranging from 0 to 4294967295. |
contenttype | Request Format | Fixed value is json. |
{}, must be included.{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"RequestId": "Id-70e312f1de024af5a36714b7b71da224-O-Seq-63504"// Other response content of REST API}
Field | Type | Description |
ActionStatus | String | The result of the request processing. OK means success, FAIL means failure. If it's FAIL, ErrorInfo will provide the reason for failure. |
ErrorInfo | String | Failure. |
ErrorCode | Integer | Error code. 0 means success, others mean failure. You can refer to the Error Code Table for specific reasons. |
RequestId | String | Error code. 0 means success, others mean failure. You can refer to the Error Code Table for specific reasons. |
Error code | Description |
60002 | HTTP parsing error, please check the HTTP request URL format. |
60003 | HTTP request JSON parsing error, please check the JSON format. |
60004 | Request URL or JSON payload contains an incorrect account or signature. |
60005 | Request URL or JSON payload contains an incorrect account or signature. |
60006 | SDKAppID invalid, please verify the validity of SDKAppID. |
60007 | RESTful API invocation frequency exceeds its limit, please reduce the request frequency. |
60008 | Service request timed out or HTTP request format is incorrect, please check and retry. |
60009 | Request Resource Error, please check the request URL. |
60010 | The request requires App administrator privileges. |
60011 | SDKAppID request frequency exceeds the limit, please reduce the request frequency. |
60012 | RESTful API requires SDKAppID, please check the SDKAppID in the request URL. |
60013 | HTTP response package JSON parsing error. |
60014 | Account Replacement timed out. |
60015 | The request body has the wrong account type. Please ensure the account is in string format. |
60016 | SDKAppID is disabled. |
60017 | The request is disabled. |
60018 | The request is too frequent, please try again later. |
60019 | The request is too frequent, please try again later. |
60020 | Your Professional Edition package has expired and been deactivated. Please log in to [ Chat purchase page](https://buy.tencentcloud.com/avc) to repurchase the package. Once purchased, it will take effect 5 minutes later. |
60021 | The Call Source IP for RestAPI is illegal. |
telnet console.tim.qq.com 443 to confirm if the service port can be connected.curl -I https://console.tim.qq.com to simply test if the status code is 200.피드백