今天开始接触微信公众号开发,在获取 access_token 时,返回
{
"errcode": 40164,
"errmsg": "invalid ip 117.136.86.87, not in whitelist hint:[UIluoA05892067]"
}意思是这个IP 117.136.86.87 不在白名单内
我们需要登录微信平台,在“开发”--“基本配置”--“公众号信息开发”--“IP白名单”去添加下白名单即可


微信提供的接口

请求的参数
grant_type:client_credential
appid 和 secret 也是在“公众号信息开发”中获取,如下图

最后调用接口,我们即可拿到对应的access_token

本文链接:https://my.lmcjl.com/post/20931.html
展开阅读全文
4 评论