查询短链 - nxtele/http-api-document GitHub Wiki

简要描述:

  • 短链接列表

请求方式:

  • URL:http://api.nxcloud.com/api/shortLink/shortLinks
  • Method:POST
  • Content-Type: application/x-www-form-urlencoded

参数:

参数名 必选 类型 说明
appkey string 短信应用appkey
secretkey string 短信应用secretkey
url string 长连接(请使用原始长连接)

请求示例:

curl --location --request POST 'http://api.nxcloud.com/api/shortLink/shortLinks' \
--data-urlencode 'appkey=asdf' \
--data-urlencode 'secretkey=qwer' \
--data-urlencode 'url=www.asdfghjklzxcvbnm.com'

返回示例

 {
    "code": "0",
    "row": [
		{"short_link":"http://xxx/xxxxxx"},
		{"short_link":"http://xxx/xxxxx2"}
	]
}

返回参数说明

参数名 类型 说明
code string 结果编码
row array 诸多短链接

备注

错误代码

code 说明
0 请求成功
1 应用不可用或key错误
2 参数错误或为空
3 余额不足
9 IP非法
11 邮箱格式有误
88 请求失败
99 系统错误