PHP code example of printsites / deliv-php

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

    

printsites / deliv-php example snippets


     $client = new \Deliv\DelivClient('apikey', 'production||<defaults_to_staging>');
     $client->deliveries->cancelDelivery('<delivery_id>');
 
    $client->deliveries->createDeliveryEstimate($data);

    $client->deliveries->getDeliveryEstimate($id);

    $client->deliveries->createDelivery($data);
 
    $client->deliveries->getDelivery('id');
 
    $client->deliveries->updateDelivery($delivery);