当前位置: 移动技术网 > IT编程>开发语言>PHP > 微信小程序调用api接口

微信小程序调用api接口

2018年03月30日  | 移动技术网IT编程  | 我要评论

kbs超级中国第六集,dota好女孩,马可波罗采购网

请求的第三方微信url大概有3种

1)$url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=$appid&secret=$appsecret&code=$code&grant_type=authorization_code";

2)$url = "https://api.weixin.qq.com/sns/oauth2/component/access_token?appid=$appid&secret=$appsecret&code=$code&grant_type=authorization_code";

3)$url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$appsecret&js_code=$code&grant_type=authorization_code";

注意:小程序获取openid的接口和网页授权的不一样。

貌似之前申请的小程序可以用网页授权的接口。

最近注册的小程序会报api unauthorized

第一种最近貌似也会报api unauthorized

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网