获取 微信第三方小程序接口调用凭据返回40001错误?
发布于 7 年前 作者 dfu 5773 次浏览 来自 官方Issues

4、使用授权码换取公众号或小程序的接口调用凭据和授权信息

http请求方式: POST(请使用https协议)

https://api.weixin.qq.com/cgi-bin/component/api_query_auth?component_access_token=xxxx

POST数据示例:

{

“component_appid”:“appid_value” ,

“authorization_code”: “auth_code_value”

}

接口返回错误40001,{ [“errcode”]=> int(40001) [“errmsg”]=> string(78) “invalid credential, access_token is invalid or not latest hint: [aoJf05703612]” }

昨天访问还是可以的

1 回复

检查下component_access_token 获取情况

回到顶部