getResourceFile
托管资源背后的文件
The download link and archive password `Resource` withholds. Needs the operator-granted `moyu:files` scope. Only a resource whose `storage` is `s3` has a file here; a link its publisher hosts elsewhere is `NOT_FOUND`, as is a hosted file no longer stored. Never cached: every answer, refusals included, is `Cache-Control: private, no-store`. Ask again rather than keeping a `download_url`.
/v2/moyu/resources/{id}/filemoyu:filesAuthorization: Bearer nmk_live_…(任意有效 v2 应用密钥即可,无需任何 scope;唯一例外是 /v2/moyu/resources/{id}/file,要运营发放的 moyu:files)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
id 必填 | string | path | 资源 id。 |
响应
objectstring必填resource_idstring必填artifact_uuidstringuuid 必填The stored file. Replacing a resource's file uploads a new one, so a different uuid means different bytes.
download_urlstringuri 必填支持 `Range`。
filenamestring必填文件上传时的名字。
bytesintegerint64 必填blake3string必填BLAKE3 of the file, or empty when moyu has none. A normalized file always has one; otherwise no file uploaded after 2026-06-04 does, and a hash that belonged to a file the resource has since replaced is not reported. Hash the download yourself when you need one.
passwordstring必填解压密码,压缩包没有密码时为空。
updated_atstringdate-time 必填When the resource was last edited, its file or anything else. Normalizing the file does not move it.
normalizedboolean必填The file itself is the passwordless zip letmoe's forge built from the author's archive, and `repack` is null. Every hosted file becomes one, minutes after it is uploaded or replaced.
repackobject必填The passwordless STORE-zip copy letmoe's forge attached, or null. moyu deletes it when the resource is deleted or its file replaced, so a null after a non-null means it is gone.
请求示例
curl "https://api.nextmoe.dev/v2/moyu/resources/7007/file" \
-H "Authorization: Bearer nmk_live_<YOUR_KEY>"