JoomShopping API Connection Error

16.08.2021 12:37
#1
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Posts: 248
Quote
JoomShopping API Connection Error

Hi everybody,

After the last update to version 4.18.7 the API throws this error: "Connection error. No authorization header".
The login return success, i get a token and use this for the next requests, like it is described in the doku:

https://www.webdesigner-profi.de/joomla-webdesign/example/addon_api_documentation.htm

probably this is caused by the update?

this is my request (php):

$curl = curl_init(..../index.php?option=com_jshopping&controller=addon_api);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query([
'section' => 'user',
'task' => 'groups',
]));
curl_setopt($curl, CURLOPT_HTTPHEADER, [
'Authorization: Bearer ' . $token_i_get_from_opening_call
]);
$res = curl_exec($curl);

same error with other tasks...

Greetings from Carinthia


Joomla: 3.9.28
JoomShopping: 4.18.7
PHP: 7.4
MySQL: 15.1
Website Url: local

Last change: 16.08.2021 12:43
 
16.08.2021 13:53
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Posts: 25936
Quote
Aw: JoomShopping API Connection Error

Look carefully (Your configuration)
There were no changes in the addon.

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.