saleweaver/python-amazon-sp-api

DataKiosk methods should have add_marketplace=False

grzesiektoton opened this issue · 0 comments

DataKiosk.get_query() and DataKiosk.get_document() don't work. They return error
SellingApiForbiddenException: [{'code': 'Unauthorized', 'message': 'Access to requested resource is denied.', 'details': ''}]

The solution is to set add_marketplace=False as below:

DataKiosk.get_query
return self._request(fill_query_params(kwargs.pop('path'), query_id), params=kwargs, add_marketplace=False)

DataKiosk.get_document
res = self._request(fill_query_params(kwargs.pop('path'), document_id), params=kwargs, add_marketplace=False)

Edit:
add_marketplace=False should be added to all methods in DataKiosk