-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdouyin_ec.py
More file actions
30 lines (23 loc) · 753 Bytes
/
douyin_ec.py
File metadata and controls
30 lines (23 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from __future__ import annotations
from typing import Any
from justoneapi._resource import BaseResource
from justoneapi._response import ApiResponse
class DouyinEcResource(BaseResource):
"""Generated resource for Douyin E-commerce."""
def get_item_detail_v1(
self,
*,
item_id: str,
) -> ApiResponse[Any]:
"""
Item Details
Get Douyin E-commerce item details, including price, title, and stock, for product monitoring and competitive analysis.
Args:
item_id: The unique ID of the item on Douyin E-commerce.
"""
return self._get(
"/api/douyin-ec/get-item-detail/v1",
{
"itemId": item_id,
},
)