python-amazon-sp-api 1.9.57__py3-none-any.whl → 1.9.58__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amazon-sp-api
3
- Version: 1.9.57
3
+ Version: 1.9.58
4
4
  Summary: Python wrapper for the Amazon Selling-Partner API
5
5
  Home-page: https://github.com/saleweaver/python-amazon-sp-api
6
6
  Author: Michael
@@ -1,8 +1,8 @@
1
- python_amazon_sp_api-1.9.57.data/scripts/make_endpoint,sha256=QWcwG6z4RWFJlzj4-xyHJymjObyKtwkvWFRq8T18iG0,8568
2
- python_amazon_sp_api-1.9.57.dist-info/licenses/LICENSE,sha256=nbzomPIVo1PVl5bpGAntofsYAF7ZQ2UhzOtKgf7IiNw,1071
1
+ python_amazon_sp_api-1.9.58.data/scripts/make_endpoint,sha256=QWcwG6z4RWFJlzj4-xyHJymjObyKtwkvWFRq8T18iG0,8568
2
+ python_amazon_sp_api-1.9.58.dist-info/licenses/LICENSE,sha256=nbzomPIVo1PVl5bpGAntofsYAF7ZQ2UhzOtKgf7IiNw,1071
3
3
  sp_api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- sp_api/__version__.py,sha256=gH6kr1AkCzKuSccRdXAEZcLwUdzFJ4yUACwfaauLVGs,23
5
- sp_api/api/__init__.py,sha256=spVkblGMx7S74LLEAE2ztM6aWoX_aww7WJs4iL5a7xs,4663
4
+ sp_api/__version__.py,sha256=VQ9veyZEEEC8UBuZZZgujoj5SJzahVubv24IikKvBX4,23
5
+ sp_api/api/__init__.py,sha256=QTDz2g_fryNGkGszhytqhI8K3x_ttP7fbXLJ5uRvmj0,4747
6
6
  sp_api/api/amazon_warehousing_and_distribu/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  sp_api/api/amazon_warehousing_and_distribu/amazon_warehousing_and_distribu.py,sha256=bMBIxIj0eu6Gi6WY3XLdHHYDzNCwz0-9X59Jo9DoqfE,5863
8
8
  sp_api/api/aplus_content/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -17,6 +17,8 @@ sp_api/api/catalog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
17
17
  sp_api/api/catalog/catalog.py,sha256=sDykeEaSmZZHwQ-6aYJvc9xDZqBGs9FlnUvKveE5ZCY,3956
18
18
  sp_api/api/catalog_items/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
19
  sp_api/api/catalog_items/catalog_items.py,sha256=TtPMh-75lL6HIPwxesEP1i8RGjmCuAPWdUptKdth_sU,4817
20
+ sp_api/api/customer_feedback/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
+ sp_api/api/customer_feedback/customer_feedback.py,sha256=3QJOu7-nHTdHWGricL6hnmX0qKcmqmoVsBLIpo1IJv4,3559
20
22
  sp_api/api/data_kiosk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
23
  sp_api/api/data_kiosk/data_kiosk.py,sha256=OyLyXtpAmPhfeDUqU2O7ovZ5e7K_ZAEcfyv3INNecyc,12175
22
24
  sp_api/api/easy_ship/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -125,7 +127,7 @@ sp_api/util/key_maker.py,sha256=T4I2rdBZzvWtX32qgrv9DA5EzVK3LEAWtbRffup-_kE,2172
125
127
  sp_api/util/load_all_pages.py,sha256=K6Suml4_GWZ5L9-YcnhaM9q-dA7Xr6wNLE-kWP_8MPk,1839
126
128
  sp_api/util/load_date_bound.py,sha256=j9gu9WucENqU9xaQ-xG7c4yK4RB-FXK39_r1mLT76z0,1726
127
129
  sp_api/util/retry.py,sha256=V8SeSeX3Brdou138hNA5HeQkKlHppZcqbZobIDjmBYw,2407
128
- python_amazon_sp_api-1.9.57.dist-info/METADATA,sha256=nXZvso7RziSJW0AI0tjXP7M3TGP60rDosBv5lrTr9Ag,6794
129
- python_amazon_sp_api-1.9.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
130
- python_amazon_sp_api-1.9.57.dist-info/top_level.txt,sha256=mEzPMFyyy0LmJGY4KFXfh5usUka4eeouIr7-2IAzoE0,7
131
- python_amazon_sp_api-1.9.57.dist-info/RECORD,,
130
+ python_amazon_sp_api-1.9.58.dist-info/METADATA,sha256=TzWy3SQuEfEHNG6lEP4cOciAQZiFZ96dHQkCXbEf3kE,6794
131
+ python_amazon_sp_api-1.9.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
132
+ python_amazon_sp_api-1.9.58.dist-info/top_level.txt,sha256=mEzPMFyyy0LmJGY4KFXfh5usUka4eeouIr7-2IAzoE0,7
133
+ python_amazon_sp_api-1.9.58.dist-info/RECORD,,
sp_api/__version__.py CHANGED
@@ -1 +1 @@
1
- __version__ = '1.9.57'
1
+ __version__ = '1.9.58'
sp_api/api/__init__.py CHANGED
@@ -26,7 +26,7 @@ from .application_integrations.application_integrations import ApplicationIntegr
26
26
 
27
27
  from .easy_ship.easy_ship import EasyShip
28
28
 
29
-
29
+ from .customer_feedback.customer_feedback import CustomerFeedback
30
30
 
31
31
  from .listings_restrictions.listings_restrictions import ListingsRestrictions
32
32
 
@@ -119,7 +119,7 @@ __all__ = [
119
119
  ##### DO NOT DELETE ########## INSERT TITLE HERE #######
120
120
  "ExternalFulfillment",
121
121
  "ApplicationIntegrations",
122
-
122
+ "CustomerFeedback",
123
123
  "FulfillmentInbound",
124
124
 
125
125
  "EasyShip",
File without changes
@@ -0,0 +1,110 @@
1
+ from sp_api.base import Client, sp_endpoint, ApiResponse, fill_query_params
2
+
3
+
4
+ class CustomerFeedback(Client):
5
+ """
6
+ The Selling Partner API for CustomerFeedback - 2024-06-01
7
+
8
+ The Selling Partner API for Customer Feedback (Customer Feedback API) provides information about customer reviews and returns at both the item and browse node level.
9
+ """
10
+
11
+ @sp_endpoint(
12
+ "/customerFeedback/2024-06-01/items/{}/reviews/topics", method="GET"
13
+ )
14
+ def get_item_review_topics(
15
+ self, asin, *args, **kwargs
16
+ ) -> ApiResponse:
17
+ """
18
+ Retrieve an item's ten most positive and ten most negative review topics.
19
+ """
20
+
21
+ return self._request(
22
+ fill_query_params(kwargs.pop('path'), asin), params=kwargs
23
+ )
24
+
25
+ @sp_endpoint("/customerFeedback/2024-06-01/items/{}/browseNode", method="GET")
26
+ def get_item_browse_node(self, asin, *args, **kwargs) -> ApiResponse:
27
+ """
28
+ This API returns the associated browse node of the requested ASIN. A browse node is a location in a browse tree that is used for navigation, product classification, and website content on the Amazon retail website.
29
+ """
30
+
31
+ return self._request(
32
+ fill_query_params(kwargs.pop('path'), asin), params=kwargs
33
+ )
34
+
35
+
36
+ @sp_endpoint(
37
+ "/customerFeedback/2024-06-01/browseNodes/{}/reviews/topics",
38
+ method="GET",
39
+ )
40
+ def get_browse_node_review_topics(
41
+ self, browseNodeId, *args, **kwargs
42
+ ) -> ApiResponse:
43
+ """
44
+ Retrieve a browse node's ten most positive and ten most negative review topics.
45
+ """
46
+
47
+ return self._request(
48
+ fill_query_params(kwargs.pop('path'), browseNodeId), params=kwargs
49
+ )
50
+
51
+
52
+ @sp_endpoint(
53
+ "/customerFeedback/2024-06-01/items/{}/reviews/trends", method="GET"
54
+ )
55
+ def get_item_review_trends(
56
+ self, asin, *args, **kwargs
57
+ ) -> ApiResponse:
58
+ """
59
+ Retrieve an item's positive and negative review trends for the past six months.
60
+ """
61
+
62
+ return self._request(
63
+ fill_query_params(kwargs.pop('path'), asin), params=kwargs
64
+ )
65
+
66
+
67
+ @sp_endpoint(
68
+ "/customerFeedback/2024-06-01/browseNodes/{}/reviews/trends",
69
+ method="GET",
70
+ )
71
+ def get_browse_node_review_trends(
72
+ self, browseNodeId, *args, **kwargs
73
+ ) -> ApiResponse:
74
+ """
75
+ Retrieve the positive and negative review trends of items in a browse node for the past six months.
76
+ """
77
+
78
+ return self._request(
79
+ fill_query_params(kwargs.pop('path'), browseNodeId), params=kwargs
80
+ )
81
+
82
+ @sp_endpoint(
83
+ "/customerFeedback/2024-06-01/browseNodes/{}/returns/topics",
84
+ method="GET",
85
+ )
86
+ def get_browse_node_return_topics(
87
+ self, browseNodeId, *args, **kwargs
88
+ ) -> ApiResponse:
89
+ """
90
+ Retrieve the topics that customers mention when they return items in a browse node.
91
+ """
92
+
93
+ return self._request(
94
+ fill_query_params(kwargs.pop('path'), browseNodeId), params=kwargs
95
+ )
96
+
97
+ @sp_endpoint(
98
+ "/customerFeedback/2024-06-01/browseNodes/{}/returns/trends",
99
+ method="GET",
100
+ )
101
+ def get_browse_node_return_trends(
102
+ self, browseNodeId, *args, **kwargs
103
+ ) -> ApiResponse:
104
+ """
105
+ Retrieve the trends of topics that customers mention when they return items in a browse node.
106
+ """
107
+
108
+ return self._request(
109
+ fill_query_params(kwargs.pop('path'), browseNodeId), params=kwargs
110
+ )