## 微信链接转换 ![](https://img.kancloud.cn/60/b9/60b97e71d3e36863a89c5b943ae24549_200x200.png) > 该接口用于将微信公众平台的临时文章链接转为永久链接,摆脱链接过期打开微信文章显示参数错误的烦恼。系统同时返回微信公众号的biz值,可配合微信精选接口,获取微信最新文章、查询微信全文等接口使用。 **请注意:已完全过期的临时链接无法处理** ## 接口费用( [点击购买](https://market.topthink.com/product/211)) > 最低 0.1元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/wechat/link ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是| string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | url| 是 | string | 未过期的微信文章链接| ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | wxid | string | 公众号ID | | wxname | string | 公众号名称 | | wxqr | string | 公众号二维码 | | fixurl | string | 公众号永久链接 | | biz | string | 公众号标识 | | ctime | string| 文章发布时间 | ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->wechatLink() ->withUrl('https://mp.weixin.qq.com/s/63Tkv91DXjgMv6GeZZ_fXQ') ->request(); ``` 返回示例: ~~~ { "code":0, "message": "成功的返回", "data": [ { "wxid":"tianapi", "wxname":"天行后花园", "wxqr":"https://open.weixin.qq.com/qr/code?username=tianapi", "fixurl":"http://mp.weixin.qq.com/s?__biz=MzA4Njg1MjkzOA==&mid=2652098162&idx=1&sn=247d2fdd47071e11b6a632e9434dea58&chksm=84253a57b352b341f7526189265e3bfac3c36ef121b2baa05508cd07e703f01b082314457f0d#rd", "biz":"MzA4Njg1MjkzOA==", "ctime":"2019-03-19 20:25:31" } ] } ~~~