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
20 changes: 20 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 Down
Loading