Skip to content

Commit a6e76cc

Browse files
author
rubensanchez
committed
update from original
2 parents c490b12 + 20b116e commit a6e76cc

5 files changed

Lines changed: 35 additions & 4 deletions

File tree

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ point
44
pytest
55
requests~=2.32.3
66

7-
boto3~=1.35.16
7+
boto3~=1.35.19
88

99
cachetools~=5.5.0
1010
setuptools~=71.1.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pytest
22
requests~=2.32.3
33

4-
boto3~=1.35.16
4+
boto3~=1.35.19
55

66
cachetools~=5.5.0
77
setuptools~=71.1.0

sp_api/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.6.33'
1+
__version__ = '1.6.35'

sp_api/api/sellers/sellers.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,33 @@ def get_marketplace_participation(self, **kwargs) -> ApiResponse:
3737
3838
"""
3939
return self._request(kwargs.pop('path'), add_marketplace=False)
40+
41+
@sp_endpoint("/sellers/v1/account")
42+
def get_account(self, **kwargs) -> ApiResponse:
43+
"""
44+
get_account(self, **kwargs) -> ApiResponse
45+
Returns information about a seller account and its marketplaces.
46+
47+
**Usage Plan:**
48+
49+
====================================== ==============
50+
Rate (requests per second) Burst
51+
====================================== ==============
52+
.016 15
53+
====================================== ==============
54+
55+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
56+
57+
Examples:
58+
literal blocks::
59+
60+
res = Sellers().get_account()
61+
62+
Args:
63+
**kwargs:
64+
65+
Returns:
66+
GetAccountResponse:
67+
68+
"""
69+
return self._request(kwargs.pop('path'), add_marketplace=False)

sp_api/base/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def __init__(
5252
timeout=None,
5353
version=None,
5454
credential_providers=None,
55+
auth_token_client_class=AccessTokenClient,
5556
):
5657
if os.environ.get('SP_API_DEFAULT_MARKETPLACE', None):
5758
marketplace = Marketplaces[os.environ.get('SP_API_DEFAULT_MARKETPLACE')]
@@ -65,7 +66,7 @@ def __init__(
6566
self.marketplace_id = marketplace.marketplace_id
6667
self.region = marketplace.region
6768
self.restricted_data_token = restricted_data_token
68-
self._auth = AccessTokenClient(refresh_token=refresh_token, credentials=self.credentials, proxies=proxies, verify=verify)
69+
self._auth = auth_token_client_class(refresh_token=refresh_token, credentials=self.credentials, proxies=proxies, verify=verify)
6970
self.proxies = proxies
7071
self.timeout = timeout
7172
self.version = version

0 commit comments

Comments
 (0)