PHP code example of maioradv / qapla

1. Go to this page and download the library: Download maioradv/qapla 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/ */

    

maioradv / qapla example snippets


use MaiorADV\Qapla\Qapla;

$config = array(
	'url' => 'https://api.qapla.it/1.2/',
	'privateApiKey' => 'inserire chiave privata'
);

$qapla = new Qapla($config);

$data = array(...);
$result = $qapla->pushShipment($data);

$result = $qapla->getShipment('reference', '123456', 'it', 'consignee,history');

$result = $qapla->getShipments('2019-09-01', 'shipDate');

$result = $qapla->deleteShipment('BRT', '039000000000282');

$result = $qapla->updateShipment('BRT', '039000000000282');

$data = array(...);
$result = $qapla->pushOrder($data);

$result = $qapla->getOrder('123456');

$result = $qapla->getOrders('2019-09-01', 'dataIns');

$result = $qapla->deleteOrder('123456');

$result = $qapla->undeleteOrder('123456');

$result = $qapla->getCouriers();

$result = $qapla->detectCourier('039000000000282');

$result = $qapla->getChannel();

$result = $qapla->getCredits();

$result = $qapla->getQaplaStatus('it', 3);