请求接口https://api.meeting.qq.com/v1/meeting-rooms/{operator_id}/meetings
,传入operator_id_type
为5
,报错提示为illegal operator_id_type
,错误码190004
,请求代码如下。
尝试过operator_id_type
设置为5
或"5"
,均报illegal operator_id_type
错误。
requestBody = {"operator_id_type": 5,
"instanceid": 1}
requestBody = json.dumps(requestBody)
TodyTime = str(int(time.time()))
Nonce = str(int(random.random() * 10000))
headers = {
"X-TC-Key": SecretID,
"X-TC-Timestamp": TodyTime,
"X-TC-Nonce": Nonce,
"X-TC-Signature": '',
"AppId": AppId,
"SdkId": SdkId,
"X-TC-Registered": "1"
}
Signature = sign(secretId=SecretID, secretKey=SecretKey, httpMethod=httpMethod, headerNonce=Nonce,
headerTimestamp=TodyTime, requestUri=uri, requestBody=requestBody)
headers['X-TC-Signature'] = Signature
url = "https://api.meeting.qq.com" + uri
res = requests.request(method=httpMethod, url=url, headers=headers, data=requestBody)
print(f"res.request.headers: {res.request.headers}")
print(f"res.request.body: {res.request.body}")
print(f"res.text: {res.text}")
相似问题