コンテンツにスキップ

購読



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_xxxx32/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"
}

フィードバック

このページは役に立ちましたか?