Skip to content

Commit 0f8e9d1

Browse files
authored
fix: catalog_product creating invalid url for paginated requests (#6)
1 parent 9dabac6 commit 0f8e9d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wiopy/AsyncWIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async def catalog_product(self, **kwargs) -> WalmartCatalog:
158158
https://www.walmart.io/docs/affiliate/catalog-product
159159
"""
160160
if "nextPage" in kwargs:
161-
url = "https://developer.api.walmart" + kwargs.pop("nextPage")
161+
url = "https://developer.api.walmart.com" + kwargs.pop("nextPage")
162162
else:
163163
url = self.ENDPOINT + "/affil/product/v2/paginated/items"
164164

wiopy/WalmartIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def catalog_product(self, **kwargs) -> WalmartCatalog:
158158
https://www.walmart.io/docs/affiliate/catalog-product
159159
"""
160160
if "nextPage" in kwargs:
161-
url = "https://developer.api.walmart" + kwargs.pop("nextPage")
161+
url = "https://developer.api.walmart.com" + kwargs.pop("nextPage")
162162
else:
163163
url = self.ENDPOINT + "/affil/product/v2/paginated/items"
164164

0 commit comments

Comments
 (0)