PHP Client for the ShipsGo API
Install via composer:
composer require soerbv/shipsgo
Set client:
$client = new Client($authCode);
Create a tracking request with BL:
$client->createTrackingWithBl('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO', 'BL_CONTAINERS_REF');
Create a tracking request with Container Number:
$client->createTrackingWithContainerNumber('CONTAINER_NUMBER', 'SHIPPING_LINE', 'EMAIL_ADDRESS', 'REFERENCE_NO');
Get Voyage Data:
$data = $client->getVoyageData('CONTAINER_NUMBER');
print_r(json_decode($data));
The following endpoints are supported:
- PostCustomContainerFormWithBl
- PostCustomContainerForm
- GetContainerInfo