watchMyDiscussion
关注或静音讨论
需要来自第一方站点、带 catalog:edit scope 的用户访问令牌。令牌须带 catalog:edit scope。
put
/v2/me/discussion-watchesAuthorization: Bearer <用户访问令牌>(用户授权后的访问令牌,不是 API 密钥)请求体
application/json
anchor_idstring必填锚点 id。
anchor_kindstring必填锚点种类。
mutedboolean必填true 静音该讨论串(提及仍会送达);false 关注它。
响应
anchor_idstring必填锚点 id。
anchor_kindstring必填锚点种类。
mutedboolean必填调用者已静音该讨论串时为 true。
objectstring必填类型判别字段。恒为 discussion_watch。
枚举discussion_watchwatchingboolean必填新留言会通知到调用者时为 true。
请求示例
cURL
curl -X PUT "https://api.nextmoe.dev/v2/me/discussion-watches" \
-H "Authorization: Bearer <ACCESS_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"anchor_id":"1","anchor_kind":"string","muted":true}'