You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OffersV2 provides enhanced pricing and offer details. All resources are included by default:
84
+
85
+
```python
86
+
items = api.get_items(["B01N5IB20Q"])
87
+
item = items[0]
88
+
if item.offers_v2 and item.offers_v2.listings:
89
+
listing = item.offers_v2.listings[0]
90
+
print(listing.price.money.amount)
91
+
print(listing.merchant_info.name)
92
+
```
93
+
94
+
## Throttling
63
95
64
96
Throttling value represents the wait time in seconds between API calls, being the default value 1 second. Use it to avoid reaching Amazon request limits.
65
97
66
98
```python
67
-
amazon= AmazonCreatorsApi(ID, SECRET, VERSION, TAG, COUNTRY, throttling=4) # Makes 1 request every 4 seconds
68
-
amazon= AmazonCreatorsApi(ID, SECRET, VERSION, TAG, COUNTRY, throttling=0) # No wait time between requests
99
+
api= AmazonCreatorsApi(ID, SECRET, VERSION, TAG, COUNTRY, throttling=4) # Makes 1 request every 4 seconds
100
+
api= AmazonCreatorsApi(ID, SECRET, VERSION, TAG, COUNTRY, throttling=0) # No wait time between requests
69
101
```
70
102
71
-
**Working with Models:**
103
+
## Working with Models
72
104
73
-
All SDK models are available through the `models` module for convenient access:
105
+
All SDK models are re-exported through `amazon_creatorsapi.models` for convenient access:
74
106
75
107
```python
76
108
from amazon_creatorsapi.models import (
@@ -82,27 +114,13 @@ from amazon_creatorsapi.models import (
OffersV2 provides enhanced pricing and offer details. All resources are included by default, so OffersV2 data is available without any additional configuration:
0 commit comments