第三方平台获取openid?

第三方平台获取openid
1.回调URL获取component_verify_ticket(能够获取)
2.通过component_verify_ticket获取component_access_token(也能获取)
调用接口:https://api.weixin.qq.com/cgi...
3.通过获取的component_access_token调用https://api.weixin.qq.com/sns...
返回{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: Ga4eYa0860th44 ]"}

阅读 4k
1 个回答
新手上路,请多包涵

你需更更新component_access_token,微信有这个接口

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题