docs: add shopee http client cli example
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
# HTTP Client CLI 测试实例
|
||||
|
||||
本目录保存 ERPGo HTTP Client CLI 请求实例。
|
||||
|
||||
`shopee_synch.http` 调用 Shopee 缓存优先同步查询接口。请求需要通过 `X-API-Key` 传入本地环境变量 `API_KEY`,文件中不保存真实密钥。
|
||||
@@ -0,0 +1,11 @@
|
||||
### Shopee 商品缓存优先同步查询
|
||||
# 使用 HTTP Client CLI 前,请将 API_KEY 设置为本地环境变量。
|
||||
# 不要把真实 API Key 直接写入此文件。
|
||||
|
||||
POST http://127.0.0.1:8020/api/v1/shopee/products/24720421377/synch?cacheday=1&syncday=3
|
||||
X-API-Key: {{API_KEY}}
|
||||
Accept: application/json
|
||||
|
||||
### 预期行为
|
||||
# cacheday=1:ERPGo 本地缓存 1 天内直接返回;
|
||||
# syncday=3:货憨憨 3 天内同步过 Shopee 时不重复同步。
|
||||
Reference in New Issue
Block a user