Skip to content

Commit ae49ab4

Browse files
justoneapigithub-actions[bot]
authored andcommitted
chore: sync OpenAPI spec and generated SDK
1 parent 6dfc1f2 commit ae49ab4

5 files changed

Lines changed: 584 additions & 0 deletions

File tree

justoneapi/generated/resources/douyin_ec.py

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,46 @@ def get_item_detail_v1(
2929
},
3030
)
3131

32+
def get_item_detail_v2(
33+
self,
34+
*,
35+
item_id: str,
36+
) -> ApiResponse[Any]:
37+
"""
38+
Item Details
39+
40+
Get Douyin E-commerce item details with sales data for product monitoring, competitive analysis, and ecommerce research.
41+
42+
Args:
43+
item_id: The unique ID of the item on Douyin E-commerce.
44+
"""
45+
return self._get(
46+
"/api/douyin-ec/get-item-detail/v2",
47+
{
48+
"itemId": item_id,
49+
},
50+
)
51+
52+
def get_item_sku_info_v1(
53+
self,
54+
*,
55+
item_id: str,
56+
) -> ApiResponse[Any]:
57+
"""
58+
Product SKU Info
59+
60+
Get Douyin E-commerce product SKU data, including SKU options, price, and stock signals, for catalog checks and product monitoring.
61+
62+
Args:
63+
item_id: The unique ID of the item on Douyin E-commerce.
64+
"""
65+
return self._get(
66+
"/api/douyin-ec/get-item-sku-info/v1",
67+
{
68+
"itemId": item_id,
69+
},
70+
)
71+
3272
def search_item_list_v1(
3373
self,
3474
*,
@@ -77,3 +117,26 @@ def get_item_comments_v1(
77117
"page": page,
78118
},
79119
)
120+
121+
def get_shop_item_list_v1(
122+
self,
123+
*,
124+
shop_id: str,
125+
page: str | None = None,
126+
) -> ApiResponse[Any]:
127+
"""
128+
Shop Product List
129+
130+
Get Douyin E-commerce shop product list data, including products and pagination signals, for seller research and catalog tracking.
131+
132+
Args:
133+
shop_id: The unique ID of the shop on Douyin E-commerce.
134+
page: Page number for pagination.
135+
"""
136+
return self._get(
137+
"/api/douyin-ec/get-shop-item-list/v1",
138+
{
139+
"shopId": shop_id,
140+
"page": page,
141+
},
142+
)

justoneapi/generated/resources/douyin_xingtu.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,26 @@ def gw_api_gauthor_get_author_content_hot_keywords_v1(
606606
},
607607
)
608608

609+
def gw_api_gauthor_author_get_business_card_info_v1(
610+
self,
611+
*,
612+
o_author_id: str,
613+
) -> ApiResponse[Any]:
614+
"""
615+
Creator Business Card
616+
617+
Get Douyin Creator Marketplace (Xingtu) creator Business Card data, including business-card profile fields, for creator lookup, vetting, and campaign qualification.
618+
619+
Args:
620+
o_author_id: Author's unique ID.
621+
"""
622+
return self._get(
623+
"/api/douyin-xingtu/gw/api/gauthor/author_get_business_card_info/v1",
624+
{
625+
"oAuthorId": o_author_id,
626+
},
627+
)
628+
609629
def gw_api_aggregator_get_author_commerce_spread_info_v1(
610630
self,
611631
*,

justoneapi/generated/resources/taobao.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,26 @@ def get_shop_item_list_v3(
219219
},
220220
)
221221

222+
def get_item_sale_v1(
223+
self,
224+
*,
225+
item_id: str,
226+
) -> ApiResponse[Any]:
227+
"""
228+
Product Sales
229+
230+
Get Taobao and Tmall product sales data for sales tracking, product research, and ecommerce monitoring.
231+
232+
Args:
233+
item_id: AUnique product identifier on Taobao/Tmall (item ID).
234+
"""
235+
return self._get(
236+
"/api/taobao/get-item-sale/v1",
237+
{
238+
"itemId": item_id,
239+
},
240+
)
241+
222242
def search_item_list_v1(
223243
self,
224244
*,

openapi/public-api.json

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@
15541554
},
15551555
"/api/douyin-ec/get-item-detail/v1": {
15561556
"get": {
1557+
"deprecated": true,
15571558
"description": "Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.",
15581559
"operationId": "getApiDouyinEcGetItemDetailV1",
15591560
"parameters": [
@@ -1597,6 +1598,155 @@
15971598
"x-order": "14502000"
15981599
}
15991600
},
1601+
"/api/douyin-ec/get-item-detail/v2": {
1602+
"get": {
1603+
"description": "Get Douyin E-commerce item details with sales data for product monitoring, competitive analysis, and ecommerce research.",
1604+
"operationId": "getApiDouyinEcGetItemDetailV2",
1605+
"parameters": [
1606+
{
1607+
"description": "Access token for this API service.",
1608+
"in": "query",
1609+
"name": "token",
1610+
"required": true,
1611+
"schema": {
1612+
"type": "string"
1613+
}
1614+
},
1615+
{
1616+
"description": "The unique ID of the item on Douyin E-commerce.",
1617+
"in": "query",
1618+
"name": "itemId",
1619+
"required": true,
1620+
"schema": {
1621+
"type": "string"
1622+
}
1623+
}
1624+
],
1625+
"responses": {
1626+
"200": {
1627+
"content": {
1628+
"*/*": {
1629+
"schema": {
1630+
"$ref": "#/components/schemas/Result"
1631+
}
1632+
}
1633+
},
1634+
"description": "OK"
1635+
}
1636+
},
1637+
"summary": "Item Details",
1638+
"tags": [
1639+
"Douyin E-commerce"
1640+
],
1641+
"x-api-version": "v2",
1642+
"x-highlights": [
1643+
{
1644+
"content": "This endpoint includes product sales data.",
1645+
"type": "tip"
1646+
}
1647+
],
1648+
"x-order": "14502025"
1649+
}
1650+
},
1651+
"/api/douyin-ec/get-item-sku-info/v1": {
1652+
"get": {
1653+
"description": "Get Douyin E-commerce product SKU data, including SKU options, price, and stock signals, for catalog checks and product monitoring.",
1654+
"operationId": "getApiDouyinEcGetItemSkuInfoV1",
1655+
"parameters": [
1656+
{
1657+
"description": "Access token for this API service.",
1658+
"in": "query",
1659+
"name": "token",
1660+
"required": true,
1661+
"schema": {
1662+
"type": "string"
1663+
}
1664+
},
1665+
{
1666+
"description": "The unique ID of the item on Douyin E-commerce.",
1667+
"in": "query",
1668+
"name": "itemId",
1669+
"required": true,
1670+
"schema": {
1671+
"type": "string"
1672+
}
1673+
}
1674+
],
1675+
"responses": {
1676+
"200": {
1677+
"content": {
1678+
"*/*": {
1679+
"schema": {
1680+
"$ref": "#/components/schemas/Result"
1681+
}
1682+
}
1683+
},
1684+
"description": "OK"
1685+
}
1686+
},
1687+
"summary": "Product SKU Info",
1688+
"tags": [
1689+
"Douyin E-commerce"
1690+
],
1691+
"x-api-version": "v1",
1692+
"x-highlights": [],
1693+
"x-order": "14502035"
1694+
}
1695+
},
1696+
"/api/douyin-ec/get-shop-item-list/v1": {
1697+
"get": {
1698+
"description": "Get Douyin E-commerce shop product list data, including products and pagination signals, for seller research and catalog tracking.",
1699+
"operationId": "getApiDouyinEcGetShopItemListV1",
1700+
"parameters": [
1701+
{
1702+
"description": "Access token for this API service.",
1703+
"in": "query",
1704+
"name": "token",
1705+
"required": true,
1706+
"schema": {
1707+
"type": "string"
1708+
}
1709+
},
1710+
{
1711+
"description": "The unique ID of the shop on Douyin E-commerce.",
1712+
"in": "query",
1713+
"name": "shopId",
1714+
"required": true,
1715+
"schema": {
1716+
"type": "string"
1717+
}
1718+
},
1719+
{
1720+
"description": "Page number for pagination.",
1721+
"in": "query",
1722+
"name": "page",
1723+
"required": false,
1724+
"schema": {
1725+
"type": "string"
1726+
}
1727+
}
1728+
],
1729+
"responses": {
1730+
"200": {
1731+
"content": {
1732+
"*/*": {
1733+
"schema": {
1734+
"$ref": "#/components/schemas/Result"
1735+
}
1736+
}
1737+
},
1738+
"description": "OK"
1739+
}
1740+
},
1741+
"summary": "Shop Product List",
1742+
"tags": [
1743+
"Douyin E-commerce"
1744+
],
1745+
"x-api-version": "v1",
1746+
"x-highlights": [],
1747+
"x-order": "14502150"
1748+
}
1749+
},
16001750
"/api/douyin-ec/search-item-list/v1": {
16011751
"get": {
16021752
"description": "Get Douyin E-commerce product Search data, including matched items and product metadata, for product discovery, catalog research, and market monitoring.",
@@ -4383,6 +4533,51 @@
43834533
"x-order": "15002800"
43844534
}
43854535
},
4536+
"/api/douyin-xingtu/gw/api/gauthor/author_get_business_card_info/v1": {
4537+
"get": {
4538+
"description": "Get Douyin Creator Marketplace (Xingtu) creator Business Card data, including business-card profile fields, for creator lookup, vetting, and campaign qualification.",
4539+
"operationId": "getApiDouyinXingtuGwApiGauthorAuthorGetBusinessCardInfoV1",
4540+
"parameters": [
4541+
{
4542+
"description": "User authentication token.",
4543+
"in": "query",
4544+
"name": "token",
4545+
"required": true,
4546+
"schema": {
4547+
"type": "string"
4548+
}
4549+
},
4550+
{
4551+
"description": "Author's unique ID.",
4552+
"in": "query",
4553+
"name": "oAuthorId",
4554+
"required": true,
4555+
"schema": {
4556+
"type": "string"
4557+
}
4558+
}
4559+
],
4560+
"responses": {
4561+
"200": {
4562+
"content": {
4563+
"*/*": {
4564+
"schema": {
4565+
"$ref": "#/components/schemas/Result"
4566+
}
4567+
}
4568+
},
4569+
"description": "OK"
4570+
}
4571+
},
4572+
"summary": "Creator Business Card",
4573+
"tags": [
4574+
"Douyin Creator Marketplace (Xingtu)"
4575+
],
4576+
"x-api-version": "v1",
4577+
"x-highlights": [],
4578+
"x-order": "15003075"
4579+
}
4580+
},
43864581
"/api/douyin-xingtu/gw/api/gauthor/get_author_content_hot_keywords/v1": {
43874582
"get": {
43884583
"description": "Get Douyin Creator Marketplace (Xingtu) kOL Content Keyword Analysis data, including core metrics, trend signals, and performance indicators, for content theme analysis and creator positioning research.",
@@ -8244,6 +8439,51 @@
82448439
"x-order": "11001400"
82458440
}
82468441
},
8442+
"/api/taobao/get-item-sale/v1": {
8443+
"get": {
8444+
"description": "Get Taobao and Tmall product sales data for sales tracking, product research, and ecommerce monitoring.",
8445+
"operationId": "getApiTaobaoGetItemSaleV1",
8446+
"parameters": [
8447+
{
8448+
"description": "Access token for this API service.",
8449+
"in": "query",
8450+
"name": "token",
8451+
"required": true,
8452+
"schema": {
8453+
"type": "string"
8454+
}
8455+
},
8456+
{
8457+
"description": "AUnique product identifier on Taobao/Tmall (item ID).",
8458+
"in": "query",
8459+
"name": "itemId",
8460+
"required": true,
8461+
"schema": {
8462+
"type": "string"
8463+
}
8464+
}
8465+
],
8466+
"responses": {
8467+
"200": {
8468+
"content": {
8469+
"*/*": {
8470+
"schema": {
8471+
"$ref": "#/components/schemas/Result"
8472+
}
8473+
}
8474+
},
8475+
"description": "OK"
8476+
}
8477+
},
8478+
"summary": "Product Sales",
8479+
"tags": [
8480+
"Taobao and Tmall"
8481+
],
8482+
"x-api-version": "v1",
8483+
"x-highlights": [],
8484+
"x-order": "11001850"
8485+
}
8486+
},
82478487
"/api/taobao/get-shop-item-list/v1": {
82488488
"get": {
82498489
"description": "Get Taobao and Tmall shop Product List data, including item titles, prices, and images, for seller research and catalog tracking.",

0 commit comments

Comments
 (0)