linkfox-shopee-store-top-picks
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseShopee 精选商品 Top Picks
Shopee Top Picks
Shopee Open Platform Top Picks 模块(4 个 API)。依赖 选店;经 传入 (或 ),由服务端解析 token 转发( 须 )。
linkfox-shopee-store-authPOST /shopee/developerProxyshopIdmerchantIdpathapi/v2/top_picks/...Shopee Open Platform Top Picks Module (4 APIs). Depends on for store selection; pass (or ) via , and the server parses the token to forward the request (the must be ).
linkfox-shopee-store-authshopIdmerchantIdPOST /shopee/developerProxypathapi/v2/top_picks/...调用方式
Calling Methods
- API 端点:(不同操作通过请求体区分;完整参数/响应/错误码见
POST /shopee/developerProxy)references/api.md - Python 脚本:(可用脚本见上文脚本一览)
python scripts/<脚本名>.py '<JSON 参数>' [--inline] - 成本约束:本工具会消耗积分;失败/空结果不得自动换关键词、翻页或连续试探;需要继续检索时先向用户说明会产生额外消耗。
输出策略(脚本默认行为):
- 始终将完整响应写入 (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<cwd>取自环境变量<session>,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)SESSION_ID - 响应体 ≤ 8 KB:落盘后把完整 JSON 打印到 stdout
- 响应体 > 8 KB:落盘后 stdout 只输出摘要(顶层字段、常见计数如 /
total、最大列表字段的长度 + 前 3 条样本)costToken - 加 强制全量打印到 stdout(同样落盘)
--inline
读数据建议:先看摘要判断是否足够;需要具体字段时优先用 或 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
jqConvertFrom-Json- API Endpoint: (Different operations are distinguished by request body; see
POST /shopee/developerProxyfor complete parameters/responses/error codes)references/api.md - Python Script: (Available scripts are listed in the script overview above)
python scripts/<script-name>.py '<JSON parameters>' [--inline] - Cost Constraints: This tool consumes points; do not automatically switch keywords, paginate, or continuously retry for failed/empty results; inform the user that additional costs will be incurred before continuing the retrieval.
Output Strategy (Default Script Behavior):
- Always write the complete response to (
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.jsonis the working directory where the script is executed, which is the current project directory in Claude Code;<cwd>is retrieved from the environment variable<session>and automatically aggregated by user tasks; Writing to /tmp is prohibited, report an error if the current directory is not writable)SESSION_ID - Response body ≤ 8 KB: Print the complete JSON to stdout after saving to disk
- Response body > 8 KB: Print only a summary to stdout after saving to disk (top-level fields, common counts such as /
total, length of the largest list field + first 3 samples)costToken - Add to force full printing to stdout (still saves to disk)
--inline
Data Reading Suggestion: Check the summary first to see if it is sufficient; when specific fields are needed, use or to extract from the saved JSON file on demand, avoiding loading the entire JSON into the context.
jqConvertFrom-Json解决认证和积分问题
Resolving Authentication and Point Issues
发生以下异常情况时,采用 references/onboarding.md 引导解决问题:
For the following abnormal situations, guide users to resolve them by following references/onboarding.md:
异常情况
Abnormal Situations
- 未配置API Key:环境变量未配置 ,也未配置
LINKFOX_AGENT_API_KEY。LINKFOXAGENT_API_KEY - 响应401或402状态码
- 响应提示积分或余额不足:消息含"积分余额不足/计费不足/余额不足/quota exceeded/insufficient balance/套餐到期/需充值/请充值",或类似含义的内容。
- API Key Not Configured: The environment variables and
LINKFOX_AGENT_API_KEYare not configured.LINKFOXAGENT_API_KEY - Response returns 401 or 402 status code
- Response indicates insufficient points or balance: The message contains "insufficient points balance/insufficient billing/insufficient balance/quota exceeded/insufficient balance/package expired/need to recharge/please recharge" or similar meanings.
官方参考
Official References
Top Picks 模块索引:v2.top_picks.get_top_picks_list
Top Picks Module Index: v2.top_picks.get_top_picks_list
Prerequisites
Prerequisites
- 运行 ;exit code 42 → 先安装
python scripts/check_auth_dependency.py。linkfox-shopee-store-auth - 促销类活动(Discount / Voucher / Flash Sale 等)→ 对应促销 skill。
- Run ; if the exit code is 42 → install
python scripts/check_auth_dependency.pyfirst.linkfox-shopee-store-auth - Promotional activities (Discount / Voucher / Flash Sale, etc.) → use the corresponding promotion skill.
可用脚本(4 个 API)
Available Scripts (4 APIs)
| 脚本 | API | Method |
|---|---|---|
| get_top_picks_list | GET |
| add_top_picks | POST |
| update_top_picks | POST |
| delete_top_picks | POST |
| 通用入口 | — |
| Script | API | Method |
|---|---|---|
| get_top_picks_list | GET |
| add_top_picks | POST |
| update_top_picks | POST |
| delete_top_picks | POST |
| General Entry | — |
接口说明(按 API)
Interface Description (By API)
入参与响应细节放在 ,SKILL 只保留索引。
references/apis/| API | 说明文档 |
|---|---|
| references/apis/add-top-picks.md |
| references/apis/delete-top-picks.md |
| references/apis/get-top-picks-list.md |
| references/apis/update-top-picks.md |
模块总览 / Feedback 见 references/api.md。
Details of input parameters and responses are stored in , only the index is retained in the SKILL.
references/apis/| API | Documentation |
|---|---|
| references/apis/add-top-picks.md |
| references/apis/delete-top-picks.md |
| references/apis/get-top-picks-list.md |
| references/apis/update-top-picks.md |
Module overview / Feedback can be found in references/api.md.
Usage Scenarios
Usage Scenarios
1. 管理精选商品集合
1. Manage Top Picks Collections
- 查看现有集合
get_top_picks_list.py - 创建新集合
add_top_picks.py - /
update_top_picks.py更新或删除delete_top_picks.py
- Use to view existing collections
get_top_picks_list.py - Use to create new collections
add_top_picks.py - Use /
update_top_picks.pyto update or delete collectionsdelete_top_picks.py
Not Applicable
Not Applicable
- 店铺授权 →
linkfox-shopee-store-auth - 商品 listing →
linkfox-shopee-store-product - 店铺分类 Shop Category →
linkfox-shopee-store-shop-category - 促销 Discount / Voucher / Follow Prize 等 → 对应促销 skill
- Store authorization →
linkfox-shopee-store-auth - Product listing →
linkfox-shopee-store-product - Shop Category →
linkfox-shopee-store-shop-category - Promotions such as Discount / Voucher / Follow Prize → use the corresponding promotion skill
积分消耗规则
Point Consumption Rules
不消耗积分。
Feedback: 见 。
references/api.mdFor more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.
No points are consumed.
Feedback: See .
references/api.mdFor more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.