1. Go to this page and download the library: Download abdulsalamishaq/sendbox 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/ */
abdulsalamishaq / sendbox example snippets
// This file is generated by Composer
ate a new Client instance
$client = new Client('{access_token}');
// Create a new Client instance and set options
$client = new Client('{access_token}', [
'app_id' => '{app_id}',
'client_secret' => '{client_secret}',
'refresh_token' => '{refresh_token}',
]);
$client->shipment->getShipments();
// This file is generated by Composer
t = new Client('{api_key}');
$client->shipment->getShipments();
// This file is generated by Composer
t = new Client('{api_key}');
$client->shipment->getShipments('{shipment_id}');