<?php
declare(strict_types=1);
require 'vendor/autoload.php';
use Shippo\API;
use Shippo\API\Models\Components;
use Shippo\API\Models\Operations;
$security = new Components\Security();
$security->apiKeyHeader = '<YOUR_API_KEY_HERE>';
$sdk = API\ShippoSDK::builder()
->setShippoApiVersion('2018-02-08')
->setSecurity($security)
->build();
try {
$response = $sdk->addresses->list(768578, 99895, '2018-02-08');
if ($response->addressPaginatedList !== null) {
// handle response
}
} catch (Throwable $e) {
// handle exception
}