← 返回 Skills 市场
linkfox-ai

Amazon Store Uploads

作者 linkfox-ai · GitHub ↗ · v0.0.1 · MIT-0
cross-platform ✓ 安全检测通过
39
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install linkfox-amazon-store-uploads
功能描述
亚马逊店铺文件上传(与 linkfox-amazon-store-auth 等同系列),经 /spApi/developerProxy 调用 Uploads API v2020-11-01 的 createUploadDestinationForResource,再向返回 URL 上传文件,供 A+ Conten...
使用说明 (SKILL.md)

Amazon 店铺 Uploads(文件上传)

本 skill 专用于 向 Amazon 申请上传目的地并上传文件,与 linkfox-amazon-store-auth 同系列:先 storeTokens,再 developerProxy 调用 createUploadDestinationForResource,最后用 upload_to_destination.py 对返回的 URL 执行 PUT(不经网关)。

这是 Uploads API,不是 Orders 订单接口。订单见 linkfox-amazon-store-orders;批量 Feed 文件见 linkfox-amazon-store-feeds

官方参考

createUploadDestinationForResource · Create an upload destination


Prerequisites

  1. 依赖 linkfox-amazon-store-auth
  2. resource 须与下游 API 文档一致(例如 A+:aplus/2020-11-01/contentDocuments;Messaging 为对应 messages 资源路径)。
  3. contentMD5 为待上传文件内容的 Base64 MD5 摘要;传 filePath / content 时脚本可自动计算。

工作流

create_upload_destination_for_resource  →  uploadDestination { uploadDestinationId, url, headers }
upload_to_destination (PUT url + headers)  →  在 A+/Messaging 等 API 中引用 uploadDestinationId

Scripts

脚本 说明
create_upload_destination_for_resource.py POST uploads/2020-11-01/uploadDestinations/{resource}
upload_to_destination.py PUT 到返回的 url(带 headers
_spapi_uploads_common.py 内部公共模块

示例

export LINKFOXAGENT_API_KEY="\x3Cyour-key>"

# 1) 创建上传目的地(自动根据 filePath 计算 contentMD5)
python scripts/create_upload_destination_for_resource.py '{
  "sellerId":"A1...",
  "region":"NA",
  "resource":"aplus/2020-11-01/contentDocuments",
  "marketplaceId":"ATVPDKIKX0DER",
  "filePath":"/path/to/banner.jpg",
  "contentType":"image/jpeg"
}'

# 2) 上传文件(将上一步 stdout 中的 uploadDestination 传入)
python scripts/upload_to_destination.py '{
  "uploadDestination": { "url": "...", "headers": { } },
  "filePath": "/path/to/banner.jpg"
}'

Display Rules

  1. 成功创建目的地常为 HTTP 201;先看 developerProxy,再看 uploadDestination
  2. resource 不要带前导 /;path 中会对 / 做编码。
  3. 网关需放行 uploads/2020-11-01/ 前缀。

Feedback: skillNamelinkfox-amazon-store-uploads


更多跨境 skill:LinkFox Skills

安全使用建议
This should be treated as an incomplete review rather than an approval signal. Rerun the scan in an environment where metadata.json and artifact/ can be read, then assess only concrete evidence from those files.
能力标签
requires-sensitive-credentials
能力评估
Purpose & Capability
Artifact inspection was blocked by the local command sandbox before metadata.json or artifact files could be read, so purpose-to-capability coherence could not be confirmed.
Instruction Scope
No SKILL.md instructions were available to review because workspace file inspection failed.
Install Mechanism
No install specifications or package files were available to review because workspace file inspection failed.
Credentials
Runtime environment requests could not be assessed without readable artifacts.
Persistence & Privilege
Persistence, credentials, and privilege behavior could not be assessed without readable artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install linkfox-amazon-store-uploads
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /linkfox-amazon-store-uploads 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.1
Initial release
元数据
Slug linkfox-amazon-store-uploads
版本 0.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Amazon Store Uploads 是什么?

亚马逊店铺文件上传(与 linkfox-amazon-store-auth 等同系列),经 /spApi/developerProxy 调用 Uploads API v2020-11-01 的 createUploadDestinationForResource,再向返回 URL 上传文件,供 A+ Conten... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 39 次。

如何安装 Amazon Store Uploads?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install linkfox-amazon-store-uploads」即可一键安装,无需额外配置。

Amazon Store Uploads 是免费的吗?

是的,Amazon Store Uploads 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Amazon Store Uploads 支持哪些平台?

Amazon Store Uploads 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Amazon Store Uploads?

由 linkfox-ai(@linkfox-ai)开发并维护,当前版本 v0.0.1。

💬 留言讨论