PHP code example of wedesignit / parcel-pro-php-api-client
1. Go to this page and download the library: Download wedesignit/parcel-pro-php-api-client 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/ */
wedesignit / parcel-pro-php-api-client example snippets
$client = new \WeDesignIt\ParcelPro\Client($userId, $apiKey);
$parcelPro = new \WeDesignIt\ParcelPro\ParcelPro($client);
$client = new \WeDesignIt\ParcelPro\Client(
'<your login ID>'
'<your API key>'
);
$parcelPro = new \WeDesignIt\ParcelPro\ParcelPro($client);
// for PDF version
$label = $parcelPro->shippingLabel()->get($shipmentId);
// for HTML version
$pdf = false;
$label = $parcelPro->shippingLabel()->get($shipmentId, $pdf);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.