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
Catalog Product API allows a developer to retrieve the products catalog in a paginated fashion. Catalog can be filtered by category, brand and/or any special offers like rollback, clearance etc.
56
60
```py
57
-
data =wiopy.catalog_product(category='3944', maxId='8342714')
61
+
data =walmart_io.catalog_product(category='3944', maxId='8342714')
58
62
```
59
63
A catalog response contains category, format, nextPage, totalPages, and a list of items
The post browsed products API allows you to recommend products to someone based on their product viewing history.
64
68
```py
65
-
data =wiopy.post_browsed_products('54518466')
69
+
data =walmart_io.post_browsed_products('54518466')
66
70
```
67
71
Response gives top 10 relevant items to the given id
68
72
@@ -71,12 +75,12 @@ Response gives top 10 relevant items to the given id
71
75
There are two ways to lookup a product
72
76
The first is to pass a single string in
73
77
```py
74
-
data =wiopy.product_lookup('33093101')[0]
78
+
data =walmart_io.product_lookup('33093101')[0]
75
79
```
76
80
or you can pass a list of strings
77
81
```py
78
-
data =wiopy.product_lookup('33093101, 54518466, 516833054')
79
-
data =wiopy.product_lookup(['33093101', '54518466', '516833054'])
82
+
data =walmart_io.product_lookup('33093101, 54518466, 516833054')
83
+
data =walmart_io.product_lookup(['33093101', '54518466', '516833054'])
80
84
```
81
85
Remember: product_lookup always returns a list of [WalmartProducts](https://walmart.io/docs/affiliate/item_response_groups)
82
86
@@ -85,31 +89,32 @@ Remember: product_lookup always returns a list of [WalmartProducts](https://walm
85
89
`bulk_product_lookup` is similar to `product_lookup` however, the bulk version does not raise errors and it is a generator.
86
90
Items are passed in as chunks of max size 20. If an error occurs on that call, the same call will be retried based on the given amount. If error still occurs, all items will be lost. But the entire call will not be lost.
87
91
```py
88
-
data =wiopy.bulk_product_lookup('33093101, 54518466, 516833054', amount=1, retries=3)
92
+
data =walmart_io.bulk_product_lookup('33093101, 54518466, 516833054', amount=1, retries=3)
89
93
for items in data:
90
94
for item in items:
91
95
print(item)
92
96
```
93
97
Response gives generator of [WalmartProducts](https://walmart.io/docs/affiliate/item_response_groups)
94
98
If you are unfamiliar with async generators; to properly call the async version:
95
99
```py
96
-
data =wiopy.bulk_product_lookup('33093101, 54518466, 516833054')
100
+
data =async_walmart_io.bulk_product_lookup('33093101, 54518466, 516833054')
The Reviews API gives you access to the extensive item reviews on Walmart that have been written by the users of Walmart.com
111
116
```py
112
-
data =wiopy.reviews('33093101')
117
+
data =walmart_io.reviews('33093101')
113
118
```
114
119
Response gives review data
115
120
@@ -118,34 +123,34 @@ Response gives review data
118
123
Search API allows text search on the Walmart.com catalogue and returns matching items available for sale online.
119
124
```py
120
125
# Search for tv within electronics and sort by increasing price:
121
-
data =wiopy.search('tv', categoryId='3944', sort='price', order='ascending')
126
+
data =walmart_io.search('tv', categoryId='3944', sort='price', order='ascending')
122
127
```
123
128
You can also add facets to your search
124
129
```py
125
-
data =wiopy.search('tv', filter='brand:Samsung')
130
+
data =walmart_io.search('tv', filter='brand:Samsung')
126
131
```
127
132
The search response gives back a list of products and some meta data. It returns a `facets` element but there is no detail on the API about what it could return. It is a list of some unknown type
0 commit comments