记一下网页授权access_token与全局access_token的区别
网页授权access_token
全局access_token
获取code接口
https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect
网页授权access_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/sns/userinfo?access_token={0}&openid={1}&lang=zh_CN
获取全局access_token接口
https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
获取用户OpenID接口
https://api.weixin.qq.com/cgi-bin/user/info/batchget?access_token=ACCESS_TOKEN