listMyFolderProgress
我在收藏夹里的进度
对每个收藏夹给出:其中的在库作品里,调用者在自己的其他收藏夹里收藏了多少部(collected),以及调用者每种游玩状态各有多少部,用于在别人的清单上显示「你已玩其中 12/50」。不逐部列出作品;逐部信息用 GET /v2/me/works?work_ids=。调用者读不到的收藏夹(不属于他的私密收藏夹,或已不存在)放在 missing 里。需要带 folder:read 的用户访问令牌(folder:write 也可读取)。
get
/v2/me/folders/progress scope
folder:read 或 folder:writeAuthorization: Bearer <用户访问令牌>(用户授权后的访问令牌,不是 API 密钥)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
folder_ids | string | query | 逗号分隔的收藏夹 id,1 到 50 个。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
collectedintegerint64 必填其中调用者在自己至少一个其他收藏夹里也收藏了的作品数。
doingintegerint64 必填同上,状态为 doing。
doneintegerint64 必填同上,状态为 done。
droppedintegerint64 必填同上,状态为 dropped。
folder_idstring必填收藏夹 id。
item_countintegerint64 必填收藏夹里的在库作品数。
objectstring必填类型判别字段。固定为 folder_progress。
枚举folder_progresson_holdintegerint64 必填同上,状态为 on_hold。
wishintegerint64 必填其中调用者游玩状态为 wish 的作品数。
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/folders/progress" \
-H "Authorization: Bearer <ACCESS_TOKEN>"