PHP code example of josalba / prestashop-webservice-lib
1. Go to this page and download the library: Download josalba/prestashop-webservice-lib library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
josalba / prestashop-webservice-lib example snippets
$get = new Get('url','token');
$display = new DisplayFull();
$filter = new Filter(/* Parámetros del constructor */);
$result = $get($display, $filter);
$put = new Put('url','token');
$prestashopStockAvailableUpdate = new PrestashopStockAvailableUpdate(new StockAvailable(id: 1, quantity: 10));
$shopParam = new ShopParam(shopId: 1);
$result = $put($prestashopStockAvailableUpdate, $filter, $shopParam);