公众号统计接口,返回40001?

发布于 7 年前作者 yangzheng3809 次浏览最后编辑 7 年前来自 issues

获取用户增减数据(getusersummary)

https://api.weixin.qq.com/datacube/getusersummary?access_token=ACCESS_TOKEN


获取累计用户数据(getusercumulate)

https://api.weixin.qq.com/datacube/getusercumulate?access_token=ACCESS_TOKEN

如上两个统计接口请求时,返回

{

    “errcode”: 40001,

    “errmsg”: “invalid credential, access_token is invalid or not latest hint: [2Yn_30807r234]”

}

同样的token去【网页测试工具】请求 菜单信息,可以正常返回,请问是什么问题呢

2 回复
zhengyan
zhengyan1 楼6 年前

已经做成2分钟就刷新一次怎么还会过期?

jun37
jun372 楼5 年前

invalid credential, access_token  看token是不是过期了