listChanges
资源发生变化的作品
**The invalidation channel.** If you cache what this face answers for a work — above all `GET /v2/letmoe/works/{id}/resources` — poll this feed and drop your cached answers for every `work_id` it names. A resource published, edited, taken down, moved to another work or given a new mirror or merged download surfaces here within seconds, so a long cache stays correct. An entry carries no content: it says the work's answers may differ, not how. Read them again when you need them. Adult works are named too, whatever your `nsfw`, because a work can change sides. **Call it without `cursor` once to start.** That answer is empty and its `next_cursor` is the present; there is nothing to replay into a cache that is empty. From then on pass the `next_cursor` of the previous answer. It is always present: unchanged when nothing happened, so store it after every call. Entries are oldest first, one per work per page. Entries surface 5 seconds after the change and are kept for 7 days. A change inside a transaction open for longer than 5 seconds can be skipped, and a consumer away for longer than 7 days loses the gap, so keep a TTL on your cache as well; the feed is what lets it be long. Download and view counts do not surface here. Never cached: `Cache-Control: private, no-store`.
/v2/letmoe/changesAuthorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/letmoe/resources/{id}/file,要 letmoe:files——每把密钥创建时自动带上)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
limit | integer | query | 1 到 100。超过 100 是 `LIMIT_TOO_LARGE`,不会被夹到上限。 |
cursor | string | query | 同一个集合上一页返回的 `next_cursor`。 |
响应
objectstring必填itemsobject[]必填objectstring必填work_idstring必填catalog 作品 id,也就是 letmoe 的游戏 id。
changed_atstringdate-time 必填本页内该作品的最近一次变更。
next_cursorstring必填下次调用时作为 `cursor` 传入。总会出现。
totalobject必填 可空
请求示例
curl "https://api.nextmoe.dev/v2/letmoe/changes" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"