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
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
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
| Class | Method | HTTP request | Description |
|---|---|---|---|
| ShippingPlatformApi | apiA1V10ShippingPlatformCloseDispatchPost | POST /api/A1/v1.0/ShippingPlatform/CloseDispatch | |
| ShippingPlatformApi | apiA1V10ShippingPlatformPackageDelete | DELETE /api/A1/v1.0/ShippingPlatform/Package | Void 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. |
| ShippingPlatformApi | apiA1V10ShippingPlatformPackageGet | GET /api/A1/v1.0/ShippingPlatform/Package | |
| ShippingPlatformApi | apiA1V10ShippingPlatformPackagePost | POST /api/A1/v1.0/ShippingPlatform/Package | |
| ShippingPlatformApi | apiA1V10ShippingPlatformPreAlertDispatchPost | POST /api/A1/v1.0/ShippingPlatform/PreAlertDispatch | |
| ShippingPlatformApi | apiA1V10ShippingPlatformPreAlertDispatchWithReceptaclePost | POST /api/A1/v1.0/ShippingPlatform/PreAlertDispatchWithReceptacle | |
| ShippingPlatformApi | apiA1V10ShippingPlatformShippingRateGet | GET /api/A1/v1.0/ShippingPlatform/ShippingRate |
Models
- ContentTypeEnum
- CurrencyTypeEnum
- DimUnitEnum
- DispatchReport
- GetShippingRateResponse
- HttpStatusCode
- Label
- LabelTypeEnum
- PackageLabel
- PostCloseDispatchRequest
- PostCloseDispatchResponse
- PostPackageItemRequest
- PostPackageRequest
- PostPackageResponse
- PostPreAlertRequest
- PostPreAlertRequestWithReceptacle
- PostPreAlertResponse
- PreAlertReceptacle
- ResponseStatus
- ShippingRate
- TransPortationTypeEnum
- WeightUnitEnum
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
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen