<?php $baseDir = __DIR__ . "/../.."; require_once $baseDir . '/vendor/autoload.php'; $paazl = new Atabix\Paazl\PaazlClient(false, "usernam", "1dsasasr", "31234", "sdniasdh"); $items = array(); $items[] = array("quantity" => "3", "packagesPerUnit" => "2", "matrix" => "A", "weight" => "0.5", "width" => "15", "length" => "13", "height" => "20", "volume" => "10", "code" => "haisdads6", "description" => "asd a dasd as", "countryOfManufacture" => "JO", "unitPrice" => "5.80", "unitPriceCurrency" => "EUR"); $items[] = array("quantity" => "1", "packagesPerUnit" => "2", "matrix" => "B", "weight" => "0.5", "width" => "15", "length" => "13", "height" => "20", "volume" => "10", "code" => "haisdads6", "description" => "asd a dasd as", "countryOfManufacture" => "JO", "unitPrice" => "534.80", "unitPriceCurrency" => "EUR"); $orderID = sha1(uniqid()); // random test id $paazl->createOrder($orderID, $items);
<?php $baseDir = __DIR__ . "/../.."; require_once $baseDir . '/vendor/autoload.php'; $paazl = new Atabix\Paazl\PaazlClient(false, "dasd", "21323", "dasd", "3123"); /* MANY MORE OPTIONS, but this is the least format */ $timezone = 'Europe/Amsterdam'; date_default_timezone_set($timezone); var_dump($paazl->ordersToShip(date("Y-m-d H:i:s"), 'adas', $timezone));
<?php $baseDir = __DIR__ . "/../.."; require_once $baseDir . '/vendor/autoload.php'; $paazl = new Atabix\Paazl\PaazlClient(false, "dsad", "adsasd", "asd", "asdas"); $orders = array(); $orders[] = array('orderReference' => 'test'); /* $orders[] = array('orderReference'=>'test2', 'shippingOption'=>'UPS_STANDARD_PICKUP'); */ //var_dump($paazl->generateImageReturnLabels($orders)); var_dump($paazl->generateExtraImageReturnLabel('test'));
<?php $baseDir = __DIR__ . "/../.."; require_once $baseDir . '/vendor/autoload.php'; $paazl = new Atabix\Paazl\PaazlClient(false, "usernam", "1dsasasr", "31234", "sdniasdh"); /* MANY MORE OPTIONS, but this is the least format */ $shippingAddress = array("customerName" => "Daan Hage", "street" => "ADmiraal de RUijterweg", "housenumber" => "244", "zipcode" => "1055MN", "city" => "Amsterdam"); $shippingMethod = array("type" => "delivery", "identifier" => "0", "option" => "D", "price" => "0.5"); $orderID = 23; $random = sha1(uniqid()); //var_dump($paazl->getShippingOptions($orderID)); var_dump($paazl->commitOrder($orderID, $orderID, '123.45', $shippingMethod, $shippingAddress));
<?php $baseDir = __DIR__ . "/../.."; require_once $baseDir . '/vendor/autoload.php'; $paazl = new Atabix\Paazl\PaazlClient(false, "sadads", "dasd", "372", "dsaads"); $orders = array(); $orders[] = array('orderReference' => 'test'); $orders[] = array('orderReference' => 'test2'); var_dump($paazl->generatePdfLabels($orders, "laser"));