Unique parameter must take :
'resource' => Resource name
'id' => ID or array which contains IDs of a resource(s) you want to delete
'resource' => Resource name
'id' => ID or array which contains IDs of a resource(s) you want to delete
delete(array('resource' => 'orders', 'id' => 1));
Following code will not be executed if an exception is thrown.
echo 'Successfully deleted.';
}
catch (PrestaShopWebserviceException $ex)
{
echo 'Error : '.$ex->getMessage();
}
?>