linkfox-temu-promotion-eu

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Temu 欧洲站 — 电商促销(Promotion)

Temu 欧洲站 — 电商促销(Promotion)

本 skill(
linkfox-temu-promotion-eu
)覆盖 Partner Platform for EU Promotion / 电商促销(促销活动、优惠券、活动报名等;Partner 后台菜单可能显示为 Marketing/Promotion)相关
bg.*
/
temu.*
接口(
menu_code
与各
sub_menu_code
以 Partner 后台为准,见 partner-eu-catalog.md)。
已接入 6 条 Partner Promotion 接口,清单见 partner-eu-catalog.md
网关(本 skill 内置)
能力方法路径
促销 OpenAPI(
eu_promotion_*
temu_eu_proxy
POST
https://tool-gateway.linkfox.com/temu/proxy
加签文件下载POST
https://tool-gateway.linkfox.com/temu/fileDownload
本 Skill(
linkfox-temu-promotion-eu
)覆盖 Partner Platform for EU Promotion/电商促销(包括促销活动、优惠券、活动报名等;Partner 后台菜单可能显示为 Marketing/Promotion)相关
bg.*
/
temu.*
接口(
menu_code
及各
sub_menu_code
以 Partner 后台为准,详见 partner-eu-catalog.md)。
已接入 6 条 Partner Promotion 接口,清单见 partner-eu-catalog.md
网关(本 Skill 内置)
能力方法路径
促销 OpenAPI(
eu_promotion_*
temu_eu_proxy
POST
https://tool-gateway.linkfox.com/temu/proxy
加签文件下载POST
https://tool-gateway.linkfox.com/temu/fileDownload

相关 skill

相关 Skill

场景skill
促销/营销活动(本 skill)
linkfox-temu-promotion-eu
广告 Ads
linkfox-temu-ads-eu
商品列表/详情/编辑/库存/上下架
linkfox-temu-manage-product-eu
发品
linkfox-temu-add-product-eu
价格/供货价、定价单
linkfox-temu-price-eu
订单列表/详情
linkfox-temu-order-eu
退货与退款
linkfox-temu-returns-refunds-eu
网关与 Temu token本 skill
scripts/
场景Skill
促销/营销活动(本 Skill)
linkfox-temu-promotion-eu
广告 Ads
linkfox-temu-ads-eu
商品列表/详情/编辑/库存/上下架
linkfox-temu-manage-product-eu
发品
linkfox-temu-add-product-eu
价格/供货价、定价单
linkfox-temu-price-eu
订单列表/详情
linkfox-temu-order-eu
退货与退款
linkfox-temu-returns-refunds-eu
网关与 Temu token本 Skill
scripts/

API Usage

API 使用说明

文档内容
api.md网关、鉴权、错误码、接入约定
partner-eu-catalog.md接口目录 + Partner URL + 脚本(随接入更新)
apis/README.md按接口分文件
apis/<type-slug>.md
文档内容
api.md网关、鉴权、错误码、接入约定
partner-eu-catalog.md接口目录 + Partner URL + 脚本(随接入更新)
apis/README.md按接口分文件
apis/<type-slug>.md

默认参数

默认参数

字段默认说明
site
eu
Partner EU
managementType
semi-managed
半托管(具体接口以 Partner 文档为准)
tokenPurpose
product-inventory
与商品/促销场景一致(见 access-token.md
字段默认值说明
site
eu
Partner EU
managementType
semi-managed
半托管(具体接口以 Partner 文档为准)
tokenPurpose
product-inventory
与商品/促销场景一致(详见 access-token.md

鉴权

鉴权

  1. LinkFox
    LINKFOXAGENT_API_KEY
    → Header
    Authorization
    +
    Token
  2. Temu
    accessToken
    storeKey
    storeKey
    时建议带
    tokenPurpose=product-inventory
  1. LinkFox
    LINKFOXAGENT_API_KEY
    → 请求头
    Authorization
    +
    Token
  2. Temu
    accessToken
    storeKey
    (使用
    storeKey
    时建议携带
    tokenPurpose=product-inventory

Scripts

脚本

脚本说明
temu_eu_proxy.py
任意 type
temu_eu_file_download.py
加签下载
eu_promotion_activity_query.py
bg.promotion.activity.query
eu_promotion_activity_candidate_goods_query.py
bg.promotion.activity.candidate.goods.query
eu_promotion_activity_goods_query.py
bg.promotion.activity.goods.query
eu_promotion_activity_goods_enroll.py
bg.promotion.activity.goods.enroll
eu_promotion_activity_goods_operation_query.py
bg.promotion.activity.goods.operation.query
eu_promotion_activity_goods_update.py
bg.promotion.activity.goods.update
脚本说明
temu_eu_proxy.py
任意类型接口代理
temu_eu_file_download.py
加签文件下载
eu_promotion_activity_query.py
对应接口
bg.promotion.activity.query
eu_promotion_activity_candidate_goods_query.py
对应接口
bg.promotion.activity.candidate.goods.query
eu_promotion_activity_goods_query.py
对应接口
bg.promotion.activity.goods.query
eu_promotion_activity_goods_enroll.py
对应接口
bg.promotion.activity.goods.enroll
eu_promotion_activity_goods_operation_query.py
对应接口
bg.promotion.activity.goods.operation.query
eu_promotion_activity_goods_update.py
对应接口
bg.promotion.activity.goods.update

接入新接口(约定)

接入新接口(约定)

你每提供一条 Partner 文档(
type
+
sub_menu_code
+ URL + Request/Response 参数表),将:
  1. 新增
    references/apis/<type-slug>.md
    (完整入参/出参层级)
  2. 新增
    scripts/eu_promotion_<slug>.py
    (调用
    _eu_promotion_script.run_cli
  3. 更新 partner-eu-catalog.mdapis/README.md 与本表
你每提供一条 Partner 文档(包含
type
+
sub_menu_code
+ URL + 请求/响应参数表),我们将:
  1. 新增
    references/apis/<type-slug>.md
    (包含完整入参/出参层级)
  2. 新增
    scripts/eu_promotion_<slug>.py
    (调用
    _eu_promotion_script.run_cli
  3. 更新 partner-eu-catalog.mdapis/README.md 与本表

示例(通用代理)

示例(通用代理)

bash
export LINKFOXAGENT_API_KEY="<key>"

python scripts/temu_eu_proxy.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "product-inventory",
  "type": "<TEMU_API_TYPE>",
  "params": {
    "request": {}
  }
}'
Feedback:
skillName
linkfox-temu-promotion-eu
bash
export LINKFOXAGENT_API_KEY="<key>"

python scripts/temu_eu_proxy.py '{
  "accessToken": "TOKEN",
  "tokenPurpose": "product-inventory",
  "type": "<TEMU_API_TYPE>",
  "params": {
    "request": {}
  }
}'
反馈: Skill名称:
linkfox-temu-promotion-eu

网关与授权脚本

网关与授权脚本

脚本说明
check_linkfox_token.py
校验 LinkFox 用户 Token
temu_token_guide.py
Temu accessToken 后台授权步骤
save_temu_access_token.py
保存 accessToken 到本地
list_temu_access_tokens.py
列出已保存 token
get_temu_access_token.py
读取已保存 token
temu_proxy.py
通用网关转发(多 site)
temu_file_download.py
加签文件下载(多 site)
授权说明:references/access-token.md
<!-- LF_LARGE_RESPONSE_BLOCK -->
脚本说明
check_linkfox_token.py
校验 LinkFox 用户 Token
temu_token_guide.py
Temu accessToken 后台授权步骤指引
save_temu_access_token.py
将 accessToken 保存到本地
list_temu_access_tokens.py
列出已保存的 Token
get_temu_access_token.py
读取已保存的 Token
temu_proxy.py
通用网关转发(支持多站点)
temu_file_download.py
加签文件下载(支持多站点)
授权说明:references/access-token.md
<!-- LF_LARGE_RESPONSE_BLOCK -->

Handling Large Responses

大响应处理

To avoid overflowing the agent context, persist the response to disk and extract only the fields you need:
python scripts/response_io.py run --script scripts/check_linkfox_token.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>"   # or --path "<JMESPath>"
Pick
--out-dir
outside any git working tree (e.g.
/tmp/...
on Unix,
%TEMP%/...
on Windows). Persisted responses may contain PII, pricing, or auth-sensitive data — do not commit them. Files are not auto-deleted; clean up when the task is done.
This skill exposes multiple entry scripts:
check_linkfox_token.py
,
eu_promotion_activity_candidate_goods_query.py
,
eu_promotion_activity_goods_enroll.py
,
eu_promotion_activity_goods_operation_query.py
,
eu_promotion_activity_goods_query.py
,
eu_promotion_activity_goods_update.py
,
eu_promotion_activity_query.py
,
get_temu_access_token.py
,
list_temu_access_tokens.py
,
save_temu_access_token.py
,
temu_eu_file_download.py
,
temu_eu_proxy.py
,
temu_file_download.py
,
temu_proxy.py
,
temu_token_guide.py
. Pass
--script scripts/<name>.py
to choose the one you need.
run
writes the full response to a file and emits only a schema preview + file path.
read
projects specific fields, with
--limit/--offset
for slicing and
--format json|jsonl|csv|table
for output.
When to prefer this pattern — apply your judgment based on the response characteristics, e.g.:
  • High field count per record, or fields you don't need
  • Batch/paginated results (multiple items per call)
  • Long-text fields (descriptions, reviews, HTML, time series)
  • Output reused across later steps rather than consumed immediately
For small, single-use responses, calling the main script directly is fine.
⚠️ The preview is a truncated schema + sample, not the full data. Any field-level decision must read from the persisted file via
read
.
<!-- /LF_LARGE_RESPONSE_BLOCK -->
为避免超出 Agent 上下文限制,请将响应持久化到磁盘并仅提取所需字段:
python scripts/response_io.py run --script scripts/check_linkfox_token.py --out-dir <DIR> '<params>'
python scripts/response_io.py read <file> --fields "<paths>"   # 或使用 --path "<JMESPath>"
请将
--out-dir
设置在 Git 工作区之外(例如 Unix 系统的
/tmp/...
,Windows 系统的
%TEMP%/...
)。持久化的响应可能包含个人身份信息(PII)、定价或敏感授权数据——请勿提交这些文件。文件不会自动删除,完成任务后请自行清理。
本 Skill 提供多个入口脚本:
check_linkfox_token.py
eu_promotion_activity_candidate_goods_query.py
eu_promotion_activity_goods_enroll.py
eu_promotion_activity_goods_operation_query.py
eu_promotion_activity_goods_query.py
eu_promotion_activity_goods_update.py
eu_promotion_activity_query.py
get_temu_access_token.py
list_temu_access_tokens.py
save_temu_access_token.py
temu_eu_file_download.py
temu_eu_proxy.py
temu_file_download.py
temu_proxy.py
temu_token_guide.py
。请通过
--script scripts/<name>.py
指定你需要使用的脚本。
run
命令会将完整响应写入文件,并仅输出 schema 预览 + 文件路径。
read
命令可提取指定字段,支持通过
--limit/--offset
进行切片,以及通过
--format json|jsonl|csv|table
指定输出格式。
何时优先使用此模式——请根据响应特征判断,例如:
  • 每条记录字段数量多,或包含不需要的字段
  • 批量/分页结果(单次调用返回多条数据)
  • 长文本字段(描述、评论、HTML、时间序列等)
  • 输出结果需在后续步骤中重复使用,而非立即消费
对于小型、单次使用的响应,直接调用主脚本即可。
⚠️ 预览内容是截断的 schema + 样本,并非完整数据。任何字段级别的操作都必须通过
read
命令从持久化文件中读取数据。
<!-- /LF_LARGE_RESPONSE_BLOCK -->