爱短链开放平台API
  1. 外链管理
爱短链开放平台API
  • 接入必读
    • 接入必读
  • 短链/外链
    • 短链接
      • 创建短链分组
      • 获取链接分组
      • 获取分组下的短链列表
      • 创建短链
      • 编辑短链
      • 删除短链
    • 外链管理
      • 上传二维码/素材图片
        POST
      • 获取跳转页模板列表
        GET
      • 创建微信外链
        POST
      • 编辑微信外链
        POST
      • 获取微信外链详情
        GET
      • 获取微信外链列表
        GET
      • 获取外链-企微获客链接列表
        GET
      • 获取外链-企微获客链接详情
        GET
      • 用户可选域名列表
        GET
      • 用户可选企微获客链接列表
        GET
      • 删除微信外链(支持批量删除)
        POST
      • 创建外链-企微获客链接
        POST
      • 编辑外链-企微获客链接
        POST
      • 删除外链-企微获客链接(支持批量删除)
        POST
  • 卡片系统
    • 外链管理
      • 获取微信外链列表
      • 创建微信外链
      • 获取微信外链详情
      • 编辑微信外链
      • 删除微信外链(支持批量删除)
      • 获取外链-企微获客链接列表
      • 获取外链-企微获客链接详情
      • 创建外链-企微获客链接
      • 编辑外链-企微获客链接
      • 删除外链-企微获客链接(支持批量删除)
  1. 外链管理

编辑外链-企微获客链接

POST
https://openapi.aifabu.com/v1/chain/editWxworkChain
chain_type
💡
1.
调用次数限制:3000次/天;
2.
调用频率限制为:5次/秒;
准备事项
调用此接口前,请先调用以下接口,获取关键参数值:
1
获取 group_id:获取链接分组
2
获取 channel_id:获取外链-企微获客链接详情(channel_list.id)
3
获取 customer_id:用户可选企微获客链接列表(list.id)
4
获取 jump_template_id:获取跳转页模板列表(list.id)

请求参数

Query 参数
apikey
string 
必需
接口调用令牌ApiKey
示例值:
8c1331250ede960fd51ac56a829cc6893ce8c000
Body 参数application/json
chain
string 
链接后缀
必需
chain_type
enum<integer> 
链接类型
必需
枚举值:
3
示例值:
3
wxwork_type
enum<integer> 
授权链接接入方式
必需
枚举值:
12
示例值:
1
is_direct_jump
enum<integer> 
跳转页是否直接跳转
必需
0为通用模板
枚举值:
01
示例值:
1
jump_template_id
integer 
跳转页模板id
必需
示例值:
1
channel_id
integer 
channel_list.id
必需
target_url
string 
获客链接地址
可选
手动输入时必传,请urlencode()
group_id
integer 
分组id
必需
示例值:
111
customer_id
integer 
获客链接id
可选
授权接入时必传
chain_title
string 
链接备注
必需
示例
{
    "chain": "qweqwe",
    "chain_type": 3,
    "wxwork_type": 2,
    "jump_template_id": 0,
    "is_direct_jump": 1,
    "channel_id": 2570,
    "target_url": "https%3A%2F%2Fwork.weixin.qq.com%2Fca%2Fcawcde991d0711ba9a112233",
    "customer_id": 0,
    "chain_title": "开放API创建-编辑1",
    "group_id": 988
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.aifabu.com/v1/chain/editWxworkChain?apikey=8c1331250ede960fd51ac56a829cc6893ce8c000' \
--header 'Content-Type: application/json' \
--data-raw '{
    "chain": "qweqwe",
    "chain_type": 3,
    "wxwork_type": 2,
    "jump_template_id": 0,
    "is_direct_jump": 1,
    "channel_id": 2570,
    "target_url": "https%3A%2F%2Fwork.weixin.qq.com%2Fca%2Fcawcde991d0711ba9a112233",
    "customer_id": 0,
    "chain_title": "开放API创建-编辑1",
    "group_id": 988
}'

返回响应

🟢200成功
application/json
Body
code
integer 
返回的状态码
必需
code为1代表接口处理成功
msg
string 
返回的状态信息
必需
result
array[string]
返回的数据
必需
示例
{
    "code": 1,
    "msg": "编辑成功!",
    "result": []
}
上一页
创建外链-企微获客链接
下一页
删除外链-企微获客链接(支持批量删除)
Built with