In Prestashop 1.7 I'm trying to interact with webservice using prestapyt.
from prestapyt import PrestaShopWebServiceDict
prestashop = PrestaShopWebServiceDict('http:\\hostname.ext\api', 'APIKEY')
ps = prestashop.search('addresses')
I get this error
prestapyt.prestapyt.PrestaShopAuthenticationError: 'Unauthorized'
To try to understand if is an error of the library, I've tryied to connect at the API via browser.
Connecting at http:\hostname.ext\api I get a login request.
Inserting in the username filed the APIKEY and leaving the password field blank as indicated here I get the Unauthorized error again.
The authetication works only setting the APIKEY as querystring
http:\\hostname.ext\api?&ws_key=APIKEY
But this method is not available in prestapyt that user session authetication.
There's some setting on Prestashop that I missed or a way to understand this problem?
Thank you