When I use url from web browser
https://www.moj-sklep.pl/api/products/325/?ps_method=DELETE&output_format=JSON
everythig is ok. The product is deleted. Why it isn't work via PrestaShopWebservice. Simple code:
try { $webService = new PrestaShopWebservice(PS_SHOP_PATH, PS_WS_AUTH_KEY, DEBUG); $del = $webService->DELETE(array('resource' => 'products', 'id' => 325)); } catch (PrestaShopWebserviceException $ex) { echo '<br>Other error: <br />' . $ex->getMessage(); }