接口地址:http://api.xtaoa.com/api/restore.php
返回格式:json
请求方式:get
请求示例:http://api.xtaoa.com/api/restore.php?url=http://mtw.so/6emsLb
请求备注:暂无备注内容
请求参数说明:
名称 | 必填 | 类型 | 说明 |
---|---|---|---|
url | 是 | string | 要还原的的短网址 |
返回参数说明:
名称 | 类型 | 说明 |
---|---|---|
code | string | 返回的状态码 |
msg | string | 返回的错误信息 |
url_short | string | 缩短的短网址链接 |
url_long | string | 缩短的源网址链接 |
请求返回示例:
{ "code": 200, "msg": "success", "url_short": "http:\/\/mtw.so\/6emsLb", "url_long": "http:\/\/xtaoa.com" }
错误码参照:
错误码 | 说明 |
---|---|
201 | 参数不能为空 |
202 | 获取异常 |
203 | 格式不正确 |
实例演示代码:
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...
暂无演示代码,正在拼命添加中...