首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >调用“查询会议室下的会议列表”,operator_id_type设置为5,返回190004错误?

调用“查询会议室下的会议列表”,operator_id_type设置为5,返回190004错误?

提问于 2023-08-10 20:32:01
回答 3关注 0查看 142

请求接口https://api.meeting.qq.com/v1/meeting-rooms/{operator_id}/meetings,传入operator_id_type5,报错提示为illegal operator_id_type,错误码190004,请求代码如下。

尝试过operator_id_type设置为5"5",均报illegal operator_id_type错误。

代码语言:js
复制
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}")

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档