共 3 篇文章 |
|
{ "access_token":"ACCESS_TOKEN", "expires_in":7200, "refresh_token":"REFRESH_TOKEN","openid":"OPENID", "scope":"SCOPE","unionid": "o6_bmasdasdsad6_2sgVt7hMZOPfL"}用户刷新access_token.access_token是调用授权关系... 阅247 转3 评0 公众公开 16-11-22 20:34 |
第三步:通过code获取access_tokenhttps://api.weixin.qq.com/sns/oauth2/access_token?appid=AppID&secret=AppSecret&code=00294221aeb06261d5966&grant_type=authorization_code第四步:因接口频率有次数限制,如果需要,刷新access_tokenhttps://api.weixin.qq.com/sns/oauth2/refresh_token?appid=AppID&grant_type=refres... 阅1780 转7 评0 公众公开 16-11-22 20:23 |
$weixin=new class_weixin_adv("appid", "secret");$url="https://api.weixin.qq.com/sns/oauth2/access_token?appid=appid&secret=secret&code=".if ($row[''openid'']) { //这里写上逻辑,存入cookie,数据库等操作cookie(''weixin'',$row[''openid'']... 阅238 转1 评0 公众公开 16-11-22 20:17 |