接口简介

  • 给用户添加分享口令
  • 分享口令可以在小后台添加:
    • 小后台》交易管理》口令列表》添加口令

接口请求说明

请求方式

POST https://站点接口域名/openapi/share/add-share-word

请求参数

参数名 类型 是否必须 说明
word string 口令
image string 图片
title string 内容标题
direct string 链接地址
start_at string 开始时间 YYYY-mm-dd HH:ii 2019-12-20 14:17 不填则显示当前时间
end_at string 结束时间 YYYY-mm-dd HH:ii 2019-12-20 14:17 不填则永久有效
status int 是否开启 1开启 0关闭,默认开启1

接口响应说明

响应示例

{
    "code": 1,
    "text": "口令已存在",
    "time": 1577157893
}
{
    "code": 1,
    "text": "请确保内容填写完整",
    "time": 1577158108
}
{
    "code": 1,
    "text": "状态错误",
    "time": 1577241806
}
{
    "code": 0,
    "text": "",
    "data": {
        "id": 42,
        "full_word": "&openapi口令&口令标题 https://www.baidu.com (长按复制整段文案,打开?千帆1?即可查看详情)"
    },
    "time": 1577265440
}

响应结果说明

参数名 说明
id 口令id
full_word 完整口令
文档更新时间: 2019-12-25 17:26   作者:毛成