短链查询 v1
最近更新:2021-12-15
短链查询 v1
概述
API 层面支持分页查询短链信息功能
调用验证
HTTP Header(头)里加一个字段(Key/Value 对):
Authorization: Basic base64_auth_string
其中 base64_auth_string 的生成算法为:base64(appKey:masterSecret)
即,对 appKey 加上冒号,加上 masterSecret 拼装起来的字符串,再做 base64 转换。
调用地址
GET https://api.jmlk.co/v1/links
请求示例
curl --insecure -X GET -v https://api.jmlk.co/v1/links?page_index=1&page_size=20
-u "7d431e42dfa6a6d693ac2d04:5e987ac6d2e04d95a9d8f0d1"
curl --insecure -X GET -v https://api.jmlk.co/v1/links?page_index=1&page_size=20
-u "7d431e42dfa6a6d693ac2d04:5e987ac6d2e04d95a9d8f0d1"
此代码块在浮窗中显示
Request Params
参数名 | 必选 | 参数类型 | 示例值 | 说明 |
---|---|---|---|---|
page_index | FALSE | Integer | 1 | 页数,默认1 |
page_size | FALSE | Integer | 20 | 查询条数,默认20,最多支持500条 |
返回示例
HTTP/1.1 200
{
"total": 2,
"records": [{
"id": 1
"link_key": "AAAA",
"name": "test001",
"channel": "QQ",
"app_domain": "xxxxxx.jmlk.co",
"share_title": "商品详情",
"share_desc": "产品介绍、说明",
"android_uri": "androidUri",
"ios_uri": "iosUri",
"jump_link_type": "DOWNLOAD",
"landing_page": "https://www.jiguang.cn",
"create_time": "2020-08-03",
"update_time": "2020-08-04"
},{
"id": 2
"link_key": "AAAB",
"name": "test001",
"channel": "微信",
"app_domain": "xxxxxx.jmlk.co",
"share_title": null,
"share_desc": null,
"android_uri": "test001",
"ios_uri": "test001",
"jump_link_type": "DOWNLOAD",
"landing_page": "",
"create_time": "2020-08-01,
"update_time": "2020-08-02
}
]
}
HTTP/1.1 200
{
"total": 2,
"records": [{
"id": 1
"link_key": "AAAA",
"name": "test001",
"channel": "QQ",
"app_domain": "xxxxxx.jmlk.co",
"share_title": "商品详情",
"share_desc": "产品介绍、说明",
"android_uri": "androidUri",
"ios_uri": "iosUri",
"jump_link_type": "DOWNLOAD",
"landing_page": "https://www.jiguang.cn",
"create_time": "2020-08-03",
"update_time": "2020-08-04"
},{
"id": 2
"link_key": "AAAB",
"name": "test001",
"channel": "微信",
"app_domain": "xxxxxx.jmlk.co",
"share_title": null,
"share_desc": null,
"android_uri": "test001",
"ios_uri": "test001",
"jump_link_type": "DOWNLOAD",
"landing_page": "",
"create_time": "2020-08-01,
"update_time": "2020-08-02
}
]
}
此代码块在浮窗中显示
Response Params
参数名 | 参数类型 | 示例值 | 说明 |
---|---|---|---|
total | int | 2 | 总数 |
records | JsonArray | ||
id | int | 1 | 主键 |
link_key | String | AAAA | 短链key |
name | String | product | 短链服务名 |
channel | String | 短链投放渠道 | |
app_domain | String | xxxxxx.jmlk.co | 域名 |
share_title | String | 商品详情 | 分享标题 |
share_desc | String | 产品介绍、说明 | 分享简介 |
android_uri | String | androidUri | Android URI Scheme |
ios_uri | String | iosUri | iOS URI Scheme |
jump_link_type | String | LANDING_PAGE | 引导页类型,DOWNLOAD: 下载页,LANDING_PAGE: Web引导页 |
landing_page | String | https://www.jiguang.cn | 引导页地址 |
create_time | String | 2020-08-01 | 创建时间 |
update_time | String | 2020-08-02 | 修改时间 |
返回码
文档内容是否对您有帮助?