search

Home  >  Q&A  >  body text

php - How does the WeChat third-party platform adjust the official account interface?

After authorizing the public account, refer to the public platform document to call the public account interface, and the prompt "40001 invalid credential, access_token is invalid or not latest hint: [EGO0oA0536vr47!]" error, access_token has just been authorized It is obtained at the time, and it is normal to do web page authorization, but it fails to actively call the official account interface
For example: getting the user list

HTTP GET:
https://api.weixin.qq.com/cgi-bin/user/get?access_token=

HTTP RESPONSE:
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: [EGO0oA0536vr47!]"}
滿天的星座滿天的星座2747 days ago719

reply all(1)I'll reply

  • 曾经蜡笔没有小新

    曾经蜡笔没有小新2017-05-16 13:18:21

    It was not considered that the access_token is too long, the received length is 138 characters, and the length reserved when creating the data table is not enough, and the stored access_token is incomplete,

    reply
    0
  • Cancelreply