![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信开发
jswm20150115
互动媒体从业者
展开
-
微信接口API之长链接转短链接代码示例
<?phpheader("Content-Type: text/html; charset=utf-8");$longurl;if(isset($_POST['longurl'])){ $longurl = $_POST['longurl'];}else{ die("没有post值进来");}//echo $longurl;$id = "你的AppID";$secret =原创 2016-06-10 11:15:55 · 14286 阅读 · 3 评论 -
微信网页授权接口代码示例
OAuth2.0网页授权演示 点击这里回调页面<?phpif (isset($_GET['code'])){ // echo $_GET['code']; //通过code换取token $code = $_GET['code']; $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx3b原创 2016-07-19 16:49:37 · 6134 阅读 · 1 评论