跳转至

订阅频道



POST /api/v1/channel/{channel_uuid}/subscribe

概述

路由参数

参数名 类型 必选 说明
channel_uuid string Y 频道UUID

Body 请求参数

参数名 类型 必选 说明
type string Y 订阅类型
例子: responsible
允许为空: False
可选值: ['responsible', 'participate', 'attention', 'cancel']

参数补充说明

请求主体主体结构说明

参数名 type 说明
type string 枚举值(负责:responsible, 参与:participate, 关注: attention, 取消: cancel)

请求例子

curl 'https://openapi.guance.com/api/v1/channel/chan_d2744f4559f84d53891f749f07f7144b/subscribe' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Accept-Language: zh' \
-H 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{"type": "participate"}' \
--compressed

响应

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-AB7F9588-CD09-458B-96E3-CEF4653DD3D8"
} 

文档评价

文档内容是否对您有帮助? ×