Install
openclaw skills install @linkfox-ai/linkfox-shopee-store-authShopee(虾皮)店铺授权与管理技能,提供完整的授权流程、已授权店铺查询以及访问令牌读取能力。授权时可填写店铺名 shopName 便于识别,region 支持 cn / global / br。当用户提到 Shopee 店铺授权、虾皮店铺绑定、授权虾皮店铺、查询已授权 Shopee 店铺、获取 Shopee 店铺令牌、Shopee seller authorization, bind Shopee shop, authorized Shopee stores, query Shopee store tokens 时触发此技能。即使未明确提及"Shopee"或"授权",只要涉及虾皮卖家账号绑定、访问令牌管理或店铺列表查询,也应触发。
openclaw skills install @linkfox-ai/linkfox-shopee-store-authShopee Open Platform 的 OAuth 授权、已授权店铺列表、访问令牌读取。下游业务的前置依赖(经 /shopee/developerProxy 调用开放接口)。
state 落库shopId 与 merchantId 二选一即可定位授权;一次授权可含多个 shop(见 shopIdList)authorize_url.py 前建议问用户要一个便于识别的店铺名(API 非必填)expireIn 通常 14400);当前网关无独立刷新接口,过期需重新授权| 脚本 | 作用 |
|---|---|
authorize_url.py | 生成授权 URL(可选 shopName / region) |
authorized_stores.py | 列出已授权店铺 |
store_tokens.py | 查 token(供下游使用) |
入参、响应字段、错误码见 references/api.md。
POST /shopee/{authorizeUrl|storeTokens|authorizedStores}(完整参数/响应/错误码见 references/api.md)python scripts/<脚本名>.py '<JSON 参数>' [--inline](可用脚本见上文)输出策略(脚本默认行为):
<cwd>/linkfox/<YYYY-MM-DD>/<session>/data/<skill-name>-<timestamp>.json(<cwd> 为脚本执行时的工作目录,在 Claude Code 里即当前项目目录;<session> 取自环境变量 SESSION_ID,按用户任务自动聚合;禁止写入 /tmp,当前目录不可写则报错)--inline 强制全量打印到 stdout(同样落盘)读数据建议:先看摘要判断是否足够;需要具体字段时优先用 jq或ConvertFrom-Json 从保存的 json 文件按需抽取,避免整份 JSON 进入上下文。
cn(中国跨境,默认) / global(全球授权页) / br(巴西)。默认 cn。
shopName(便于后续识别;API 非必填)region(默认 cn;全球站 global,巴西 br)authorize_url.py 拿 URL → 给用户在浏览器打开(安全警告:为保障店铺安全,请务必在日常运营该店铺的安全网络环境中打开此链接。强烈建议使用紫鸟浏览器等专业的防关联浏览器进行授权,切勿在陌生或公共网络下操作。)authorized_stores.py 确认调 authorized_stores.py,展示 shopName / shopId / merchantId / region。
用户只说自然语言("我的虾皮店"、"67890 那家店"),不要让用户报冗长 token。
| 用户上下文 | Agent 动作 |
|---|---|
| 只授权 1 家店铺 | 直接取该店铺 shopId,不问 |
| 授权 ≥ 2 家 + 只说店名 | 按 shopName 向用户澄清 |
| 同时给出 shopName 或 shopId | 直接定位 |
| 显式给出 shopId / merchantId | 直接用 |
静默原则:定位成功时不播报完整 accessToken;脚本已做掩码,不要在摘要里还原。
流程:先 authorized_stores.py 选店 → 再 store_tokens.py(传 shopId 或 merchantId)→ 将 accessToken 交给 /shopee/developerProxy。
shopName 与 regionrefreshToken 公开接口)原因:Token 推送回调(/shopee/oauth/tokenCallback)未成功落库,或 state 不匹配。
解决:查看服务日志;重新调 authorize_url.py 完成授权。
原因:shopId / merchantId 错误,或授权不属于当前用户。
解决:先调 authorized_stores.py 核对店铺信息。
linkfox-shopee-store-orderslinkfox-shopee-store-shoplinkfox-shopee-store-productlinkfox-shopee-store-global-productlinkfox-shopee-store-merchantlinkfox-shopee-store-logisticslinkfox-shopee-store-returnslinkfox-shopee-store-adslinkfox-shopee-store-paymentlinkfox-shopee-store-amslinkfox-shopee-store-videolinkfox-shopee-store-media-spacelinkfox-shopee-store-media(api/v2/media/...,module=130)linkfox-shopee-store-first-milelinkfox-shopee-store-discountlinkfox-shopee-store-bundle-deallinkfox-shopee-store-add-on-deallinkfox-shopee-store-voucherlinkfox-shopee-store-shop-flash-salelinkfox-shopee-store-follow-prizelinkfox-shopee-store-top-pickslinkfox-shopee-store-shop-categorylinkfox-shopee-store-account-healthlinkfox-shopee-store-public(v2.public.* 底层 OAuth / Partner 查询)linkfox-shopee-store-pushlinkfox-shopee-store-sbslinkfox-shopee-store-fbslinkfox-shopee-store-livestreamlinkfox-youying-shopee-product-searchdeveloperProxy 商品 APIFeedback:
Auto-detect and report feedback via the Feedback API when any of the following apply:
Call the feedback API as specified in references/api.md. Do not interrupt the user's flow.
For more high-quality, professional cross-border e-commerce skills, visit LinkFox Skills.