sinanulker/asendia-php-client

These are all the APIs needed to handle ShippingPlatform v1.0

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

pkg:composer/sinanulker/asendia-php-client

dev-main 2024-12-13 20:22 UTC

This package is not auto-updated.

Last update: 2025-12-25 06:37:22 UTC


README

These are all the APIs needed to handle ShippingPlatform v1.0

Installation & Usage

Installation

Install the SDK via Composer:

composer require sinanulker/epost-global-php-client

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new Sinan\Asendia\Api\ShippingPlatformApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$post_close_dispatch_request = new \Sinan\Asendia\Model\PostCloseDispatchRequest(); // \Sinan\Asendia\Model\PostCloseDispatchRequest

try {
    $result = $apiInstance->apiA1V10ShippingPlatformCloseDispatchPost($post_close_dispatch_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ShippingPlatformApi->apiA1V10ShippingPlatformCloseDispatchPost: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
ShippingPlatformApiapiA1V10ShippingPlatformCloseDispatchPostPOST /api/A1/v1.0/ShippingPlatform/CloseDispatch
ShippingPlatformApiapiA1V10ShippingPlatformPackageDeleteDELETE /api/A1/v1.0/ShippingPlatform/PackageVoid package will cancel package data for previously sent request. PLEASE NOTE: If the package has been physically sent to a processing facility and the package id is reused, the physical package will be shipped with the updated package information.
ShippingPlatformApiapiA1V10ShippingPlatformPackageGetGET /api/A1/v1.0/ShippingPlatform/Package
ShippingPlatformApiapiA1V10ShippingPlatformPackagePostPOST /api/A1/v1.0/ShippingPlatform/Package
ShippingPlatformApiapiA1V10ShippingPlatformPreAlertDispatchPostPOST /api/A1/v1.0/ShippingPlatform/PreAlertDispatch
ShippingPlatformApiapiA1V10ShippingPlatformPreAlertDispatchWithReceptaclePostPOST /api/A1/v1.0/ShippingPlatform/PreAlertDispatchWithReceptacle
ShippingPlatformApiapiA1V10ShippingPlatformShippingRateGetGET /api/A1/v1.0/ShippingPlatform/ShippingRate

Models

Authorization

Authorization is handled with basic auth through the Authorization header.

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: ShippingPlatform v1.0
    • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen