Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Shipping Sdk Php Laravel Package

dinas/shipping-sdk-php

View on GitHub
Deep Wiki
Context7

Dinas\ShippingSdk\VoyagesApi

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

Example

<?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;
}

Parameters

Name Type Description Notes
voyage int Voyage ID

Return type

\SplFileObject

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: 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

Example

<?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;
}

Parameters

Name Type Description Notes
voyage int Voyage ID

Return type

\Dinas\ShippingSdk\Model\Voyage

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: 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

Example

<?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;
}

Parameters

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]

Return type

\Dinas\ShippingSdk\Model\VoyagesPaginated

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor