https://developers.weixin.qq.com/doc/offiaccount/Customer_Service/Obtain_chat_transcript.html
使用接口请求,一直返回空数据,我的AppID是wx4944b0999bb91896
接口地址:
url = f"https://api.weixin.qq.com/customservice/msgrecord/getmsglist?access_token={access_token}"
请求数据:
data = {
"starttime" : 1705407962,
"endtime" : 1705490762,
"msgid" : 1,
"number" : 10000
}
response = requests.post(url, json=data).text
响应内容:
{"recordlist":[],"number":0,"msgid":0}
你好,检查请求的token是否对应有效。
解决了吗? 我也遇到这个问题了0.0