goofish-api 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
goofish_api/__init__.py CHANGED
@@ -7,4 +7,6 @@ class GoofishClient(BaseClient):
7
7
  def __init__(self, app_key, access_token, debug=False):
8
8
  super().__init__(app_key, access_token, debug)
9
9
  self.user = api.User(self)
10
- self.good = api.Good(self)
10
+ self.good = api.Good(self)
11
+ self.order = api.Order(self)
12
+ self.other = api.Other(self)
@@ -1 +1 @@
1
- __version__ = "0.0.2"
1
+ __version__ = "0.0.4"
goofish_api/api/good.py CHANGED
@@ -28,7 +28,7 @@ class Good(BaseAPI):
28
28
 
29
29
  @action('/api/open/product/pv/list')
30
30
  def get_product_pv_list(self, item_biz_type: ItemBizType, sp_biz_type: SpBizType,
31
- channel_cat_id: int, sub_property_id: int = '', **kwargs) -> ApiResponse:
31
+ channel_cat_id: int, sub_property_id: int = None, **kwargs) -> ApiResponse:
32
32
  """ 查询商品属性
33
33
  :param item_biz_type: 商品类型(必需)
34
34
  :param sp_biz_type: 行业类型(必需)
@@ -51,8 +51,9 @@ class Good(BaseAPI):
51
51
  return self._request(data={**kwargs, **data})
52
52
 
53
53
  @action('/api/open/product/list')
54
- def get_product_list(self, online_time: [], offline_time: [], sold_time: [], update_time: [], create_time: [],
55
- product_status: ProductStatus, sale_status: SaleStatus, page_no: int = 1,
54
+ def get_product_list(self, online_time: [] = None, offline_time: [] = None, sold_time: [] = None,
55
+ update_time: [] = None, create_time: [] = None,
56
+ product_status: ProductStatus = None, sale_status: SaleStatus = None, page_no: int = 1,
56
57
  page_size: int = 50, **kwargs):
57
58
  """ 查询商品列表
58
59
  :param online_time: 商品上架时间 第一个元素值为开始时间戳,第二个元素值为结束时间戳
@@ -327,7 +328,8 @@ class Good(BaseAPI):
327
328
  return self._request(data={**kwargs, **data})
328
329
 
329
330
  @action('/api/open/product/publish')
330
- def product_publish(self, product_id: int, user_name: [], specify_publish_time: str, notify_url: str, **kwargs):
331
+ def product_publish(self, product_id: int, user_name: [], specify_publish_time: str = None, notify_url: str = None,
332
+ **kwargs):
331
333
  """ 上架商品 特别提醒:本接口会采用异步的方式更新商品信息到闲鱼App上,因此更新结果采用回调的方式进行通知。
332
334
  :param product_id: 商品数据列表
333
335
  :param user_name: 闲鱼会员名列表,
@@ -555,8 +557,8 @@ class Good(BaseAPI):
555
557
  return self._request(data={**kwargs, **data})
556
558
 
557
559
  @action('/api/open/product/edit/stock')
558
- def product_edit_stock(self, product_id: int, price: int, original_price: int,
559
- stock: int, sku_items: [], **kwargs) -> ApiResponse:
560
+ def product_edit_stock(self, product_id: int, price: int = None, original_price: int = None,
561
+ stock: int = None, sku_items: [] = None, **kwargs) -> ApiResponse:
560
562
  """ 编辑商品库存
561
563
  :param product_id: 商品ID
562
564
  :param price: 商品价格(分)
goofish_api/api/order.py CHANGED
@@ -7,9 +7,10 @@ from goofish_api.utils.helpers import action
7
7
  class Order(BaseAPI):
8
8
 
9
9
  @action('/api/open/order/list')
10
- def get_order_list(self, order_status: OrderStatus, refund_status: RefundStatus, order_time: [], pay_time: [],
11
- consign_time: [], confirm_time: [], refund_time: [], update_time: [], page_no: int,
12
- page_size: int, **kwargs) -> ApiResponse:
10
+ def get_order_list(self, order_status: OrderStatus = None, refund_status: RefundStatus = None,
11
+ order_time: [] = None, pay_time: [] = None,
12
+ consign_time: [] = None, confirm_time: [] = None, refund_time: [] = None, update_time: [] = None,
13
+ page_no: int = None, page_size: int = None, **kwargs) -> ApiResponse:
13
14
  """ 获取订单列表
14
15
  :param order_status: 订单状态
15
16
  :param refund_status: 退款状态
goofish_api/api/user.py CHANGED
@@ -6,6 +6,6 @@ from goofish_api.utils.helpers import action
6
6
  class User(BaseAPI):
7
7
 
8
8
  @action("/api/open/user/authorize/list")
9
- def get_authorize_list(self, **kwargs) -> ApiResponse:
9
+ def get_authorize_list(self, **kwargs) -> ApiResponse:
10
10
  """ 查询闲鱼店铺 """
11
11
  return self._request(data={**kwargs})
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: goofish_api
3
- Version: 0.0.2
3
+ Version: 0.0.4
4
4
  Summary: Python wrapper for the goofish API
5
5
  Home-page: https://github.com/xie7654/goofish_api
6
6
  Author: XIE JUN
@@ -1,18 +1,18 @@
1
- goofish_api/__init__.py,sha256=XfASoTB1zhCVRNb2By7lByBG_ttTLH-e8BpPreFaJOU,302
2
- goofish_api/__version__.py,sha256=xy5icTVL_-T_uZleOq5SPoLjDLVLWIK0U8whN-ij6kI,21
1
+ goofish_api/__init__.py,sha256=DBFuhivrDjf07_WOpxbA2eJ844uzFA3y8yGajQhU9nE,376
2
+ goofish_api/__version__.py,sha256=2GWffEF1rjyrveUGdfR8y3cl3JUnX0gJjr8Ryy_u4JQ,21
3
3
  goofish_api/api/__init__.py,sha256=aVQ5ipR_8VdlFF9R_khDJPHYbsJwK62XAua1kwhgL7Y,161
4
4
  goofish_api/api/base.py,sha256=7Dd6Fzm97FuLkMDMJHODgP5FSlbxHU9Q7V3Oi_3sbeA,290
5
- goofish_api/api/good.py,sha256=a9-cvLLgpQp6qnD-kJcijst0uQg3Pyyx7tKL15Photg,21644
6
- goofish_api/api/order.py,sha256=VB9oHQULdA1OewLTQdIKVRqsnjZvN563kNi_Bk26rRI,3929
5
+ goofish_api/api/good.py,sha256=96lu6LXLaqZSQMnTCAdWeTYWQkPXHCPQGHtLWCQm5pk,21786
6
+ goofish_api/api/order.py,sha256=hTemrC91wl2S_2T0tcMVkk18ZFyWMopH_JKksaXkktw,4022
7
7
  goofish_api/api/other.py,sha256=DCV5htEIYWnUFaTNq6LLA-VM4aGV-3OCuT4lDVQUE5g,357
8
- goofish_api/api/user.py,sha256=FekP846gUVN8gYBX0I11GzzePtRER8My1BUBCUfHFL8,350
8
+ goofish_api/api/user.py,sha256=sazNK1VNM07PSqee9ODHRdjD2Stzra7qQhotTODEgLs,349
9
9
  goofish_api/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  goofish_api/utils/api_response.py,sha256=Gni3q14abz4RLhGnrmALeb3YieG5VHpk3jVeAT5PjXQ,170
11
11
  goofish_api/utils/base_client.py,sha256=yPLigHtHqnbGAtkHTy2zfOGXaGyrQxFV4l5jDXQJnns,2976
12
12
  goofish_api/utils/constants.py,sha256=UZwqg6i7uOHpLKmFjE91ju9NJJCsQZ5JaV4FepoM9Bw,3026
13
13
  goofish_api/utils/helpers.py,sha256=cgvsmKMs-iOmYV2d453rkuscyFsHhwLcHHAPEp_rDGg,441
14
- goofish_api-0.0.2.dist-info/LICENSE,sha256=d01GaRU7ASQVquyRBb16HcNMh33nipoG9rS7uoBjCXw,1070
15
- goofish_api-0.0.2.dist-info/METADATA,sha256=2aGRDpBmFwtsH_hnfM2-ea8M6SQUZppvStgJf4tBO54,669
16
- goofish_api-0.0.2.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
17
- goofish_api-0.0.2.dist-info/top_level.txt,sha256=6Lsqj-fn3uvEK9GzwWaiqn0XlepFtXFg1FiCua22Hgo,12
18
- goofish_api-0.0.2.dist-info/RECORD,,
14
+ goofish_api-0.0.4.dist-info/LICENSE,sha256=d01GaRU7ASQVquyRBb16HcNMh33nipoG9rS7uoBjCXw,1070
15
+ goofish_api-0.0.4.dist-info/METADATA,sha256=-HZxXpr5rTHqbG2po9qBpGghobo4x65qHa2ZbkMGweU,669
16
+ goofish_api-0.0.4.dist-info/WHEEL,sha256=iAkIy5fosb7FzIOwONchHf19Qu7_1wCWyFNR5gu9nU0,91
17
+ goofish_api-0.0.4.dist-info/top_level.txt,sha256=6Lsqj-fn3uvEK9GzwWaiqn0XlepFtXFg1FiCua22Hgo,12
18
+ goofish_api-0.0.4.dist-info/RECORD,,