接口说明
使用 HTTPS 请求头 Authorization: Bearer $AppKey
此 API 需要:AppKey
调用方式
对接口传参
- 请求方式:POST(HTTPS)
- 内容类型:application/json
- 请求地址:https://www.allapp.link/v2/deeplink/change
参数解释
请求包体:
{
"link_id": "68qfBEW84TQDRmb3wCPowk",
"project_id": "X5c6Zz8CeUcwim82YXteh9",
"title": "链接标题",
"tag_name": ["标签1","标签2"],
"link_data": [
{
"key": "couponId",
"value": "38194"
},
{
"key": "channel",
"value": "38421"
}
],
"redirections": {
"redirect_default": "https://www.turbolink.ai/",
"redirect_android": "https://play.google.com/store/apps/details?id=com.branchcn.www",
"redirect_ios": "https://apps.apple.com/cn/app/"
},
"link_share_title": "测试标题",
"link_share_desc": "测试描述",
"link_share_img": "https://x.com/xxx.png",
"web": {
"use_custom": 1,
"web_first": 0,
"pc_type": 2,
"pc_custom_url": "https://www.turbolink.ai/1",
"h5_type": 2,
"h5_custom_url": "https://www.turbolink.ai/2"
}
}
参数说明:
参数 | 必须 | 类型 | 说明 |
---|---|---|---|
link_id | 是 | string | 需要修改的深度链接 ID |
project_id | 是 | string | 项目 ID |
title | 是 | string | 链接标题 |
tag_name | 否 | array(string) | 链接标签 |
link_data | 是 | array(object) | 深度链接自定义键值对 |
link_data.key | 否 | string | 自定义参数键 |
link_data.value | 否 | string | 自定义参数值 |
redirections | 是 | obj | 跳转配置 |
redirections.redirect_default | 否 | string | 默认跳转,PC 端跳到这 |
redirections.redirect_android | 否 | string | Android 跳转 |
redirections.redirect_android | 否 | string | iOS 跳转 |
link_share_title | 否 | string | 社媒分享标题 |
link_share_desc | 否 | string | 社媒分享描述 |
link_share_img | 否 | string | 社媒分享缩略图 |
web | 否 | object | Web跳转配置 |
web.use_custom | 否 | int32 | 是否使用自定义配置(0-否 1-是) |
web.web_first | 否 | int32 | 是否优先web跳转(0否 1是) |
web.pc_type | 否 | int32 | pc端选择(1使用默认网址 2使用自定义) |
web.pc_custom_url | 否 | int32 | pc端自定义网址,当pc端选择为2时使用 |
web.h5_type | 否 | int32 | h5端选择(1使用默认网址 2使用自定义) |
web.h5_custom_url | 否 | int32 | h5端自定义网址,当h5端选择为2时使用 |
返回结果
{
"code": 200,
"msg": "请求成功",
"data": {}
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int32 | 操作结果代码, 200 - 成功 |
msg | string | code 非 200 时为错误信息 |
data | obj | 如有数据,则返回 |