PHP code example of wizishop / wizishop-php-sdk
1. Go to this page and download the library: Download wizishop/wizishop-php-sdk 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/ */
wizishop / wizishop-php-sdk example snippets
iziShop\SDK\Exception\ApiException;
use GuzzleHttp\Exception\TransferException;
use WiziShop\SDK\ApiClientFactory;
try {
$wizishop = ApiClientFactory::authenticate('username', 'password');
$orders = $wizishop->getOrders();
// ...
} catch (ApiException $e) {
echo $e->getErrorMessage();
} catch (TransferException $e) {
echo $e->getMessage();
}