微信openid获取流程 web端
获取code
https://open.weixin.qq.com/connect/oauth2/authorize?
appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect
scope参数错误:微信端没有权限,需要申请
redirect_uri参数错误:没有用urlencode编码
上面code只能用一次,用过后需要重新获取。
获取openid
https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
相关推荐
thinkma 2016-12-26
PHP100 2019-03-28
zuoliangzhu 2020-05-16
蓝色深海 2020-03-24
cbao 2020-05-12
caiyiii 2020-04-29
cdkey 2020-05-04
powderhose 2020-04-25
zengfanpei 2020-04-22
powderhose 2019-12-13
zengfanpei 2019-11-02
CodeAndroid 2019-05-05
资源分享 2019-04-29
newhappy 2019-04-10
czsong 2011-06-13
small 2019-07-01
klshige 2019-06-30