listMyDiscussionNotices
给我的新留言
他人发表、晚于 since 的留言:位于调用者关注的讨论串中,或提及了调用者;已静音的讨论串只通过提及触达调用者。需要来自第一方站点、带 catalog:edit scope 的用户访问令牌。令牌须带 catalog:edit scope。
get
/v2/me/discussion-noticesAuthorization: Bearer <用户访问令牌>(用户授权后的访问令牌,不是 API 密钥)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
since | stringdate-time | query | RFC 3339。只返回晚于此时间的留言。默认:14 天前。 |
limit | integerint64 | query | 最多返回这么多条,最新的在前。默认 50。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
objectstring必填类型判别字段。恒为 discussion_notice。
枚举discussion_noticepostobject必填reasonstring必填mention:留言提及了调用者。reply:调用者关注的讨论串中的新留言。
枚举replymentionviewer_is_ownerboolean必填调用者提交了该锚点时为 true;客户端据此决定打开哪个页面。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64include_total=true 时出现;页码模式(page=)下恒在。与 items 同一个可见性闸。
total_relationstring仅在 page 模式出现。eq:total 为精确值。gte:total 为下界。
枚举eqgte
请求示例
cURL
curl "https://api.nextmoe.dev/v2/me/discussion-notices" \
-H "Authorization: Bearer <ACCESS_TOKEN>"