获取用户信息求解决

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

https://api.weixin.qq.com/sns/userinfo?access\_token=ACCESS\_TOKEN&openid=OPENID&lang=zh\_CN 

https://api.weixin.qq.com/cgi-bin/user/info?access\_token=ACCESS\_TOKEN&openid=OPENID&lang=zh\_CN 

这两个获取用户信息是怎么回事?

获取token是用哪个?

https://api.weixin.qq.com/sns/oauth2/access\_token?appid=APPID&secret=SECRET&code=CODE&grant\_type=authorization\_code 

https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET

为什么都是两个有什么区别?


求大神解释一下

0 回复
暂无回复