Skip to content

Commit 170eae0

Browse files
author
Anonymous Committer
committed
refactor: edit taobao.get_shop_item_list_v1
1 parent d788b09 commit 170eae0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

justoneapi/apis/taobao.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,11 @@ def get_social_feed_v1(self, item_id: str, page: int):
129129
logger.warning(f"Pagination parse error at {url}. Contact us to fix it.")
130130
return result, data, message, has_next_page
131131

132-
def get_shop_item_list_v1(self, user_id: str, shop_id: str, page: int, sort: str = None):
132+
def get_shop_item_list_v1(self, user_id: str, shop_id: str = None, page: int = 1, sort: str = None):
133133
url = f"{self.base_url}/api/taobao/get-shop-item-list/v1"
134134
params = {
135135
"token": self.token,
136136
"userId": user_id,
137-
"shopId": shop_id,
138137
"page": page,
139138
}
140139
if sort:

0 commit comments

Comments
 (0)