- 调用方式,结果一直是空的:
curl --location 'https://api.weixin.qq.com/customservice/msgrecord/getmsglist?access_token=我的token' \
--header 'Content-Type: application/json' \
--data '{
"starttime" : 1688791194,
"endtime" : 1688792178,
"msgid" : 1,
"number" : 10000
} '
res:
{
"recordlist": [],
"number": 0,
"msgid": 0
}
- 发消息的接口:
curl --location 'https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=mytoken' \
--header 'Content-Type: application/json' \
--data '{
"touser":"openid",
"msgtype":"text",
"text":
{
"content":"Hello World"
}
}'
使用的是测试号测试的,appid: wx279015fa5e25c569
你好,建议调用线上真实账号信息