Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions justoneapi/generated/resources/jd.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,26 @@ def get_item_detail_v1(
},
)

def get_item_detail_v2(
self,
*,
item_id: str,
) -> ApiResponse[Any]:
"""
Product Details

Get JD.com 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.

Args:
item_id: A unique product identifier on JD.com (item ID).
"""
return self._get(
"/api/jd/get-item-detail/v2",
{
"itemId": item_id,
},
)

def get_item_price_v1(
self,
*,
Expand Down
27 changes: 25 additions & 2 deletions justoneapi/generated/resources/tiktok_shop.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def search_products_v1(

Args:
keyword: Search keyword.
region: Target region for product search. Available Values: - `US`: United States - `GB`: United Kingdom - `SG`: Singapore - `MY`: Malaysia - `PH`: Philippines - `TH`: Thailand - `VN`: Vietnam - `ID`: Indonesia
region: Target region for product search. Available Values: - `US`: United States - `GB`: United Kingdom - `FR`: France - `SG`: Singapore - `MY`: Malaysia - `PH`: Philippines - `TH`: Thailand - `VN`: Vietnam - `ID`: Indonesia
offset: Search result offset.
page_token: Pagination token for the next page.
"""
Expand All @@ -51,7 +51,7 @@ def get_product_detail_v1(

Args:
product_id: TikTok Shop Product ID.
region: Target region for product detail. Available Values: - `US`: United States - `GB`: United Kingdom - `SG`: Singapore - `MY`: Malaysia - `PH`: Philippines - `TH`: Thailand - `VN`: Vietnam - `ID`: Indonesia
region: Target region for product detail. Available Values: - `US`: United States - `GB`: United Kingdom - `FR`: France - `SG`: Singapore - `MY`: Malaysia - `PH`: Philippines - `TH`: Thailand - `VN`: Vietnam - `ID`: Indonesia
"""
return self._get(
"/api/tiktok-shop/get-product-detail/v1",
Expand All @@ -60,3 +60,26 @@ def get_product_detail_v1(
"region": region,
},
)

def get_product_detail_v2(
self,
*,
product_id: str,
region: str | None = "FR",
) -> ApiResponse[Any]:
"""
Product Details

Get TikTok Shop product Details data, including title, description, and price, for building product catalogs, price and stock monitoring, and in-depth product analysis.

Args:
product_id: TikTok Shop Product ID.
region: Target region for product detail. Available Values: - `FR`: France
"""
return self._get(
"/api/tiktok-shop/get-product-detail/v2",
{
"productId": product_id,
"region": region,
},
)
86 changes: 86 additions & 0 deletions justoneapi/generated/resources/xiaohongshu.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,26 @@ def get_note_detail_v1(
},
)

def get_note_detail_v2(
self,
*,
note_id: str,
) -> ApiResponse[Any]:
"""
Note Details

Get Xiaohongshu (RedNote) note Details data, including media and engagement metrics, for content analysis, archiving, and campaign research.

Args:
note_id: Unique note identifier on Xiaohongshu.
"""
return self._get(
"/api/xiaohongshu/get-note-detail/v2",
{
"noteId": note_id,
},
)

def get_note_detail_v3(
self,
*,
Expand All @@ -138,6 +158,46 @@ def get_note_detail_v3(
},
)

def get_note_detail_v4(
self,
*,
note_id: str,
) -> ApiResponse[Any]:
"""
Note Details

Get Xiaohongshu (RedNote) note Details data, including media and engagement metrics, for content analysis, archiving, and campaign research.

Args:
note_id: Unique note identifier on Xiaohongshu.
"""
return self._get(
"/api/xiaohongshu/get-note-detail/v4",
{
"noteId": note_id,
},
)

def get_note_detail_v5(
self,
*,
note_id: str,
) -> ApiResponse[Any]:
"""
Note Details

Get Xiaohongshu (RedNote) note Details data, including media and engagement metrics, for content analysis, archiving, and campaign research.

Args:
note_id: Unique note identifier on Xiaohongshu.
"""
return self._get(
"/api/xiaohongshu/get-note-detail/v5",
{
"noteId": note_id,
},
)

def get_note_detail_v7(
self,
*,
Expand Down Expand Up @@ -291,6 +351,32 @@ def search_note_v3(
},
)

def get_topic_note_list_v1(
self,
*,
topic_id: str,
sort: str | None = "hot",
cursor: str | None = None,
) -> ApiResponse[Any]:
"""
Topic Note List

Get Xiaohongshu (RedNote) topic Note List data, including notes under a topic, for topic monitoring and content discovery.

Args:
topic_id: Unique topic identifier on Xiaohongshu.
sort: Sort order for the result set. Available Values: - `time`: Latest - `hot`: Hot
cursor: Pagination cursor from the previous page.
"""
return self._get(
"/api/xiaohongshu/get-topic-note-list/v1",
{
"topicId": topic_id,
"sort": sort,
"cursor": cursor,
},
)

def search_user_v2(
self,
*,
Expand Down
Loading