PHP code example of passchn / digistore-api-wrapper

1. Go to this page and download the library: Download passchn/digistore-api-wrapper 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/ */

    

passchn / digistore-api-wrapper example snippets


$api->Purchases->get($id);

$api->Buyers->get($id_or_email);

$deliveries = $api->Deliveries->countOpen() // ?int

$deliveries = $api->Deliveries->listForPurchase("ABC123") // ?array

$deliveries = $api->Deliveries->listForTimeRange() // ?array

$deliveries = $api->Deliveries->listByTypes([
    DeliveryTypes::REQUEST,
    DeliveryTypes::DELIVERY,
]) // ?array