@yixiaoermail/cli 3.2.6 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checksums.txt +6 -6
- package/package.json +1 -1
- package/references/cli/command-reference.md +2 -0
- package/references/get-goods.md +14 -0
- package/skills/yixiaoer/SKILL.md +1 -1
- package/skills/yixiaoer/references/cli/command-reference.md +2 -0
- package/skills/yixiaoer/references/get-goods.md +14 -0
package/checksums.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
fcb9a7ce314f104e476e4e8b3a6f6c042aae37074459d2de139af646796ef5b8 yxer-cli-3.2.8-windows-amd64.zip
|
|
2
|
+
65194358fd78143062adf7e0338b8f7ba213c9d3563ec818f9fd39212ca2ab38 yxer-cli-3.2.8-windows-arm64.zip
|
|
3
|
+
b0b061b432041425aa5d8b70ecd6e1b991ee921978f846ca5265ae045289fb3c yxer-cli-3.2.8-darwin-amd64.tar.gz
|
|
4
|
+
71de6594c86ee6bfa313041b22c9c671cfffde09d39d2d2851717585de6a9397 yxer-cli-3.2.8-darwin-arm64.tar.gz
|
|
5
|
+
aa89df1335b649b1b95db5ad591ef08e8a39da8bbe99503ab08cd67f79b595f1 yxer-cli-3.2.8-linux-amd64.tar.gz
|
|
6
|
+
d37d14713ec8bb084ebe0e99c41e79ccee217d01c3eb8da09969440135c9d7d6 yxer-cli-3.2.8-linux-arm64.tar.gz
|
package/package.json
CHANGED
|
@@ -69,6 +69,8 @@ yxer query categories <account_id> [--type video|article]
|
|
|
69
69
|
yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
|
|
70
70
|
yxer query music <account_id> [--query 关键词]
|
|
71
71
|
yxer query goods <account_id> [--query 关键词]
|
|
72
|
+
yxer query goods-detail <account_id> --url <product_url>
|
|
73
|
+
yxer query entitlements <account_id>
|
|
72
74
|
yxer query collections <account_id> [--type video|article]
|
|
73
75
|
yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
|
|
74
76
|
yxer query challenges <account_id> [--query 关键词] [--type video]
|
package/references/get-goods.md
CHANGED
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
此接口用于获取指定媒体账号在平台上关联的商品、团购或小店商品列表,以便在发布视频时进行商业推广。
|
|
4
4
|
|
|
5
|
+
若需要从一个商品链接生成可挂购物车的完整商品对象,使用 `goods-detail`。它解析单个链接,不查询账号的选品车或商品列表。
|
|
6
|
+
|
|
5
7
|
## 1. 调用指令
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
yxer query goods YOUR_ACCOUNT_ID --query 可选搜索词 --json
|
|
11
|
+
yxer query goods-detail YOUR_ACCOUNT_ID --url "商品链接" --json
|
|
9
12
|
```
|
|
10
13
|
|
|
11
14
|
## 2. 请求参数
|
|
@@ -16,10 +19,21 @@ yxer query goods YOUR_ACCOUNT_ID --query 可选搜索词 --json
|
|
|
16
19
|
| account_id | string | 是 | 蚁小二系统内的媒体账号 ID |
|
|
17
20
|
| keyword | string | 否 | 搜索商品的关键词 |
|
|
18
21
|
|
|
22
|
+
`goods-detail` 参数:
|
|
23
|
+
|
|
24
|
+
| 参数名 | 类型 | 必填 | 说明 |
|
|
25
|
+
| :--- | :--- | :--- | :--- |
|
|
26
|
+
| account_id | string | 是 | 蚁小二系统内的媒体账号 ID |
|
|
27
|
+
| url | string | 是 | 待解析的商品链接 |
|
|
28
|
+
|
|
19
29
|
## 3. 返回数据结构
|
|
20
30
|
|
|
21
31
|
返回一个包含 `ShoppingCartItem` 对象的数组及分页信息。发布时必须使用 `yxer query goods` 返回的完整对象,不能只保留 `data.yixiaoerId`、`data.yixiaoerName` 或局部字段。
|
|
22
32
|
|
|
33
|
+
`yxer query goods-detail` 返回相同的完整商品对象结构,可将其结果中的商品对象用于抖音 `shopping_cart`;该命令只解析链接,不执行发布。
|
|
34
|
+
|
|
35
|
+
发布前可执行 `yxer query entitlements YOUR_ACCOUNT_ID --json` 确认返回的 `shopping_cart` 为 `true`。CLI 在 `shopping_cart` 非空时会在 `validate`、`publish --dry-run` 与正式 `publish` 前执行同一权限检查。
|
|
36
|
+
|
|
23
37
|
### ShoppingCartItem 结构说明
|
|
24
38
|
| 字段名 | 类型 | 说明 |
|
|
25
39
|
| :--- | :--- | :--- |
|
package/skills/yixiaoer/SKILL.md
CHANGED
|
@@ -69,6 +69,8 @@ yxer query categories <account_id> [--type video|article]
|
|
|
69
69
|
yxer query locations <account_id> [--query 关键词] [--type 0|1|2|3]
|
|
70
70
|
yxer query music <account_id> [--query 关键词]
|
|
71
71
|
yxer query goods <account_id> [--query 关键词]
|
|
72
|
+
yxer query goods-detail <account_id> --url <product_url>
|
|
73
|
+
yxer query entitlements <account_id>
|
|
72
74
|
yxer query collections <account_id> [--type video|article]
|
|
73
75
|
yxer query members [--page 1] [--size 10] [--status notJoined|pending|joined] [--query 关键词] [--role master|admin|member]
|
|
74
76
|
yxer query challenges <account_id> [--query 关键词] [--type video]
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
此接口用于获取指定媒体账号在平台上关联的商品、团购或小店商品列表,以便在发布视频时进行商业推广。
|
|
4
4
|
|
|
5
|
+
若需要从一个商品链接生成可挂购物车的完整商品对象,使用 `goods-detail`。它解析单个链接,不查询账号的选品车或商品列表。
|
|
6
|
+
|
|
5
7
|
## 1. 调用指令
|
|
6
8
|
|
|
7
9
|
```bash
|
|
8
10
|
yxer query goods YOUR_ACCOUNT_ID --query 可选搜索词 --json
|
|
11
|
+
yxer query goods-detail YOUR_ACCOUNT_ID --url "商品链接" --json
|
|
9
12
|
```
|
|
10
13
|
|
|
11
14
|
## 2. 请求参数
|
|
@@ -16,10 +19,21 @@ yxer query goods YOUR_ACCOUNT_ID --query 可选搜索词 --json
|
|
|
16
19
|
| account_id | string | 是 | 蚁小二系统内的媒体账号 ID |
|
|
17
20
|
| keyword | string | 否 | 搜索商品的关键词 |
|
|
18
21
|
|
|
22
|
+
`goods-detail` 参数:
|
|
23
|
+
|
|
24
|
+
| 参数名 | 类型 | 必填 | 说明 |
|
|
25
|
+
| :--- | :--- | :--- | :--- |
|
|
26
|
+
| account_id | string | 是 | 蚁小二系统内的媒体账号 ID |
|
|
27
|
+
| url | string | 是 | 待解析的商品链接 |
|
|
28
|
+
|
|
19
29
|
## 3. 返回数据结构
|
|
20
30
|
|
|
21
31
|
返回一个包含 `ShoppingCartItem` 对象的数组及分页信息。发布时必须使用 `yxer query goods` 返回的完整对象,不能只保留 `data.yixiaoerId`、`data.yixiaoerName` 或局部字段。
|
|
22
32
|
|
|
33
|
+
`yxer query goods-detail` 返回相同的完整商品对象结构,可将其结果中的商品对象用于抖音 `shopping_cart`;该命令只解析链接,不执行发布。
|
|
34
|
+
|
|
35
|
+
发布前可执行 `yxer query entitlements YOUR_ACCOUNT_ID --json` 确认返回的 `shopping_cart` 为 `true`。CLI 在 `shopping_cart` 非空时会在 `validate`、`publish --dry-run` 与正式 `publish` 前执行同一权限检查。
|
|
36
|
+
|
|
23
37
|
### ShoppingCartItem 结构说明
|
|
24
38
|
| 字段名 | 类型 | 说明 |
|
|
25
39
|
| :--- | :--- | :--- |
|