生成临时链接 [免签名]
接口说明
http
POST /openapi/tmp-share
请求体参数:
字段名 | 类型 | 可空 | 说明 |
---|---|---|---|
expire | number | 否 | 有效期,单位:分钟 |
user_id | number | 否 | 用户ID |
api_key | string | 否 | API密钥 |
account_type | all | point | tag | 是 | 分享账号类型, all 全部账号, point 指定账号, tag 指定标签的账号,默认all |
tag_id | number | 是 | 关联的标签ID,account_type为tag时必填 |
account_ids | number[] | 是 | 分享的账号ID,account_type为point时必填 |
template_id | number | 是 | 使用的页面模板 ID |
max_account_count | number | 是 | 最大可分享账号数量 |
code | string | 是 | 链接后缀 |
password | string | 是 | 分享访问密码 |
remark | string | 是 | 备注信息 |
text | string | 是 | 文本信息,加在返回链接前面 |
支持GET请求,参数放在url参数中
参数示例
60分钟有效期的链接
json
{
"expire": 60,
"user_id": 100,
"api_key": "AK-MAD9F4GXPO2PBW0"
}
添加访问密码
json
{
"expire": 60,
"user_id": 100,
"api_key": "AK-MAD9F4GXPO2PBW0",
"password": "123456"
}
使用标签和页面模版
json
{
"expire": 60,
"user_id": 100,
"api_key": "AK-MAD9F4GXPO2PBW0",
"account_type": "tag",
"tag_id": 101,
"template_id": 102
}
响应示例
json
{
"data": "https://applo.cc/s/2/mefcjt8rs6qa",
"code": 200,
"message": "",
}