Skip to content

Commit d012256

Browse files
authored
Merge pull request #19 from justoneapi/codex/openapi-sync
chore: sync OpenAPI spec and generated SDK
2 parents 2fe7bcf + b96453a commit d012256

3 files changed

Lines changed: 132 additions & 0 deletions

File tree

justoneapi/generated/resources/douyin_ec.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,26 @@ def get_item_detail_v1(
2828
"itemId": item_id,
2929
},
3030
)
31+
32+
def get_item_comments_v1(
33+
self,
34+
*,
35+
item_id: str,
36+
page: str | None = None,
37+
) -> ApiResponse[Any]:
38+
"""
39+
Item Comments
40+
41+
Get Douyin E-commerce item comments, including ratings, review content, and reviewer signals, for customer feedback analysis and product research.
42+
43+
Args:
44+
item_id: The unique ID of the item on Douyin E-commerce.
45+
page: Page number for paginated comments.
46+
"""
47+
return self._get(
48+
"/api/douyin-ec/get-item-comments/v1",
49+
{
50+
"itemId": item_id,
51+
"page": page,
52+
},
53+
)

openapi/public-api.json

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,60 @@
14081408
"x-order": "21001200"
14091409
}
14101410
},
1411+
"/api/douyin-ec/get-item-comments/v1": {
1412+
"get": {
1413+
"description": "Get Douyin E-commerce item comments, including ratings, review content, and reviewer signals, for customer feedback analysis and product research.",
1414+
"operationId": "getDouyinEcItemCommentsV1",
1415+
"parameters": [
1416+
{
1417+
"description": "Access token for this API service.",
1418+
"in": "query",
1419+
"name": "token",
1420+
"required": true,
1421+
"schema": {
1422+
"type": "string"
1423+
}
1424+
},
1425+
{
1426+
"description": "The unique ID of the item on Douyin E-commerce.",
1427+
"in": "query",
1428+
"name": "itemId",
1429+
"required": true,
1430+
"schema": {
1431+
"type": "string"
1432+
}
1433+
},
1434+
{
1435+
"description": "Page number for paginated comments.",
1436+
"in": "query",
1437+
"name": "page",
1438+
"required": false,
1439+
"schema": {
1440+
"type": "string"
1441+
}
1442+
}
1443+
],
1444+
"responses": {
1445+
"200": {
1446+
"content": {
1447+
"*/*": {
1448+
"schema": {
1449+
"$ref": "#/components/schemas/Result"
1450+
}
1451+
}
1452+
},
1453+
"description": "OK"
1454+
}
1455+
},
1456+
"summary": "Item Comments",
1457+
"tags": [
1458+
"Douyin E-commerce"
1459+
],
1460+
"x-api-version": "v1",
1461+
"x-highlights": [],
1462+
"x-order": "14502100"
1463+
}
1464+
},
14111465
"/api/douyin-ec/get-item-detail/v1": {
14121466
"get": {
14131467
"description": "Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.",

openapi/public-api.normalized.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,61 @@
14391439
"x-sdk-resource": "douban"
14401440
}
14411441
},
1442+
"/api/douyin-ec/get-item-comments/v1": {
1443+
"get": {
1444+
"description": "Get Douyin E-commerce item comments, including ratings, review content, and reviewer signals, for customer feedback analysis and product research.",
1445+
"operationId": "getDouyinEcItemCommentsV1",
1446+
"parameters": [
1447+
{
1448+
"description": "The unique ID of the item on Douyin E-commerce.",
1449+
"in": "query",
1450+
"name": "itemId",
1451+
"required": true,
1452+
"schema": {
1453+
"type": "string"
1454+
},
1455+
"x-sdk-python-name": "item_id"
1456+
},
1457+
{
1458+
"description": "Page number for paginated comments.",
1459+
"in": "query",
1460+
"name": "page",
1461+
"required": false,
1462+
"schema": {
1463+
"type": "string"
1464+
},
1465+
"x-sdk-python-name": "page"
1466+
}
1467+
],
1468+
"responses": {
1469+
"200": {
1470+
"content": {
1471+
"*/*": {
1472+
"schema": {
1473+
"$ref": "#/components/schemas/Result"
1474+
}
1475+
}
1476+
},
1477+
"description": "OK"
1478+
}
1479+
},
1480+
"security": [
1481+
{
1482+
"tokenAuth": []
1483+
}
1484+
],
1485+
"summary": "Item Comments",
1486+
"tags": [
1487+
"Douyin E-commerce"
1488+
],
1489+
"x-api-version": "v1",
1490+
"x-highlights": [],
1491+
"x-order": "14502100",
1492+
"x-sdk-class-name": "DouyinEcResource",
1493+
"x-sdk-method-name": "get_item_comments_v1",
1494+
"x-sdk-resource": "douyin_ec"
1495+
}
1496+
},
14421497
"/api/douyin-ec/get-item-detail/v1": {
14431498
"get": {
14441499
"description": "Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.",

0 commit comments

Comments
 (0)