Skip to content

Commit 8626259

Browse files
authored
Merge pull request #15 from justoneapi/codex/openapi-sync
chore: sync OpenAPI spec and generated SDK
2 parents eb95723 + 9c2b75a commit 8626259

8 files changed

Lines changed: 3215 additions & 119479 deletions

File tree

justoneapi/generated/resources/amazon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_best_sellers_v1(
6868
Get Amazon best Sellers data, including rank positions, product metadata, and pricing, for identifying trending products in specific categories, market share analysis and category research, and tracking sales rank and popularity over time.
6969
7070
Args:
71-
category: Best sellers category to return products for (e.g. 'software' or 'software/229535').
71+
category: Best sellers category to return products for (e.g. 'baby-products' or 'baby-products/166777011'). The value is derived from the URL path of the Amazon Best Sellers page, such as: https://www.amazon.com/Best-Sellers-Baby-Baby-Toddler-Feeding-Supplies/zgbs/baby-products/166777011
7272
country: Country code for the Amazon product. Available Values: - `US`: United States - `AU`: Australia - `BR`: Brazil - `CA`: Canada - `CN`: China - `FR`: France - `DE`: Germany - `IN`: India - `IT`: Italy - `MX`: Mexico - `NL`: Netherlands - `SG`: Singapore - `ES`: Spain - `TR`: Turkey - `AE`: United Arab Emirates - `GB`: United Kingdom - `JP`: Japan - `SA`: Saudi Arabia - `PL`: Poland - `SE`: Sweden - `BE`: Belgium - `EG`: Egypt - `ZA`: South Africa - `IE`: Ireland
7373
page: Page number for pagination.
7474
"""

justoneapi/generated/resources/douyin.py

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

32-
def get_user_video_list_v1(
33-
self,
34-
*,
35-
sec_uid: str,
36-
max_cursor: int | None = 0,
37-
) -> ApiResponse[Any]:
38-
"""
39-
User Published Videos
40-
41-
Get Douyin (TikTok China) user Published Videos data, including captions, covers, and publish times, for account monitoring.
42-
43-
Args:
44-
sec_uid: The unique user ID (sec_uid) on Douyin.
45-
max_cursor: Pagination cursor; use 0 for the first page, and the `max_cursor` from the previous response for subsequent pages.
46-
"""
47-
return self._get(
48-
"/api/douyin/get-user-video-list/v1",
49-
{
50-
"secUid": sec_uid,
51-
"maxCursor": max_cursor,
52-
},
53-
)
54-
5532
def get_user_video_list_v3(
5633
self,
5734
*,

justoneapi/generated/resources/douyin_xingtu.py

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -782,29 +782,6 @@ def get_kol_spread_info_v1(
782782
},
783783
)
784784

785-
def search_douyin_kol_v1(
786-
self,
787-
*,
788-
body: str,
789-
accept_cache: bool | None = False,
790-
) -> ApiResponse[Any]:
791-
"""
792-
Legacy KOL Search
793-
794-
Get Douyin Creator Marketplace (Xingtu) legacy KOL Search data, including preserving the request format, for creator evaluation, campaign planning, and marketplace research.
795-
796-
Args:
797-
body: JSON request body.
798-
accept_cache: Enable cache.
799-
"""
800-
return self._get(
801-
"/api/douyin-xingtu/search-douyin-kol/v1",
802-
{
803-
"body": body,
804-
"acceptCache": accept_cache,
805-
},
806-
)
807-
808785
def search_kol_simple_v1(
809786
self,
810787
*,
@@ -1033,32 +1010,6 @@ def get_kol_rec_videos_v1(
10331010
},
10341011
)
10351012

1036-
def search_for_author_square_v3(
1037-
self,
1038-
*,
1039-
page: int,
1040-
fans_low: int,
1041-
fans_high: int,
1042-
) -> ApiResponse[Any]:
1043-
"""
1044-
Creator Search
1045-
1046-
Get Douyin Creator Marketplace (Xingtu) creator Search data, including filters, returning profile, and audience, for discovery, comparison, and shortlist building.
1047-
1048-
Args:
1049-
page: Page number.
1050-
fans_low: Minimum fans count.
1051-
fans_high: Maximum fans count.
1052-
"""
1053-
return self._get(
1054-
"/api/douyin-xingtu/search-for-author-square/v3",
1055-
{
1056-
"page": page,
1057-
"fansLow": fans_low,
1058-
"fansHigh": fans_high,
1059-
},
1060-
)
1061-
10621013
def get_kol_daily_fans_v1(
10631014
self,
10641015
*,

justoneapi/generated/resources/taobao.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,26 @@ 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+
Product Details
39+
40+
Get Taobao and Tmall product Details data through the task-backed v2 flow. If data is not ready within a short wait, the response returns a pending task status.
41+
42+
Args:
43+
item_id: AUnique product identifier on Taobao/Tmall (item ID).
44+
"""
45+
return self._get(
46+
"/api/taobao/get-item-detail/v2",
47+
{
48+
"itemId": item_id,
49+
},
50+
)
51+
3252
def get_item_detail_v4(
3353
self,
3454
*,

justoneapi/generated/resources/xiaohongshu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def search_note_v2(
246246
page: Page number for pagination.
247247
sort: Sort order for the result set. Available Values: - `general`: General - `popularity_descending`: Popularity Descending - `time_descending`: Time Descending - `comment_descending`: Comment Descending - `collect_descending`: Collect Descending
248248
note_type: Note type filter. Available Values: - `_0`: General - `_1`: Video - `_2`: Normal
249-
note_time: Note publish time filter. Available Values: - `一天内`: Within one day - `一周内`: Within a week - `半年内`: Within half a year
249+
note_time: Note publish time filter. This parameter is for reference only and does not have much effect. Available Values: - `一天内`: Within one day - `一周内`: Within a week - `半年内`: Within half a year
250250
"""
251251
return self._get(
252252
"/api/xiaohongshu/search-note/v2",

justoneapi/generated/resources/xiaohongshu_pgy.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -532,32 +532,6 @@ def get_kol_note_list_v1(
532532
},
533533
)
534534

535-
def get_kol_data_summary_v1(
536-
self,
537-
*,
538-
kol_id: str,
539-
business: str,
540-
accept_cache: bool | None = False,
541-
) -> ApiResponse[Any]:
542-
"""
543-
Data Summary
544-
545-
Get Xiaohongshu Creator Marketplace (Pugongying) summary data, including activity, engagement, and audience growth, for creator evaluation, campaign planning, and creator benchmarking.
546-
547-
Args:
548-
kol_id: KOL ID.
549-
business: Business type. Available Values: - `_0`: Normal notes - `_1`: Cooperation notes
550-
accept_cache: Enable cache.
551-
"""
552-
return self._get(
553-
"/api/xiaohongshu-pgy/get-kol-data-summary/v1",
554-
{
555-
"kolId": kol_id,
556-
"business": business,
557-
"acceptCache": accept_cache,
558-
},
559-
)
560-
561535
def get_kol_data_summary_v2(
562536
self,
563537
*,

0 commit comments

Comments
 (0)