All URIs are relative to https://shipping.dinas.jp.
| Method | HTTP request | Description |
|---|---|---|
| getBlEd() | GET /api/voyages/{voyage}/bl-ed | Download Bill of Lading and Export Declaration for a specific voyage |
| getVoyage() | GET /api/voyages/{voyage} | Retrieve detailed information about a specific voyage |
| getVoyages() | GET /api/voyages | Retrieve a paginated list of voyages with optional filtering and sorting |
getBlEd()getBlEd($voyage): \SplFileObject
Download Bill of Lading and Export Declaration for a specific voyage
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\VoyagesApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$voyage = 56; // int | Voyage ID
try {
$result = $apiInstance->getBlEd($voyage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoyagesApi->getBlEd: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| voyage | int | Voyage ID |
\SplFileObject
application/octet-stream[Back to top] [Back to API list] [Back to Model list] [Back to README]
getVoyage()getVoyage($voyage): \Dinas\ShippingSdk\Model\Voyage
Retrieve detailed information about a specific voyage
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\VoyagesApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$voyage = 56; // int | Voyage ID
try {
$result = $apiInstance->getVoyage($voyage);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoyagesApi->getVoyage: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| voyage | int | Voyage ID |
\Dinas\ShippingSdk\Model\Voyage
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
getVoyages()getVoyages($status, $search, $sort, $per_page, $page): \Dinas\ShippingSdk\Model\VoyagesPaginated
Retrieve a paginated list of voyages with optional filtering and sorting
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (Token) authorization: bearerAuth
$config = Dinas\ShippingSdk\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Dinas\ShippingSdk\Api\VoyagesApi(
// If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`.
// This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface
new GuzzleHttp\Client(),
$config
);
$status = 'status_example'; // string | Filter by voyage status
$search = 'search_example'; // string | Search by voyage number
$sort = 'sort_example'; // string | Sort field. Prefix with - for descending. **default: -id**
$per_page = 56; // int | Number of items per page. **default: 100**
$page = 56; // int | Page number. **default: 1**
try {
$result = $apiInstance->getVoyages($status, $search, $sort, $per_page, $page);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling VoyagesApi->getVoyages: ', $e->getMessage(), PHP_EOL;
}
| Name | Type | Description | Notes |
|---|---|---|---|
| status | string | Filter by voyage status | [optional] |
| search | string | Search by voyage number | [optional] |
| sort | string | Sort field. Prefix with - for descending. default: -id | [optional] |
| per_page | int | Number of items per page. default: 100 | [optional] |
| page | int | Page number. default: 1 | [optional] |
\Dinas\ShippingSdk\Model\VoyagesPaginated
application/json[Back to top] [Back to API list] [Back to Model list] [Back to README]
How can I help you explore Laravel packages today?