kruegge82 / shipstage-php-sdk
Wenn Sie die API verwenden möchten, wenden Sie sich bitte an den Support, um ein Authentifizierungstoken zu erhalten.
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/kruegge82/shipstage-php-sdk
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.4.5
- guzzlehttp/psr7: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- overtrue/phplint: ^9.0
- phpunit/phpunit: ^9.0
README
Wenn Sie die API verwenden möchten, wenden Sie sich bitte an den Support, um ein Authentifizierungstoken zu erhalten.
Installation & Usage
Requirements
PHP 8.1 and later.
Composer
To install the bindings via Composer, add the following to composer.json:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
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'); // Configure Bearer authorization: TokenAuth $config = kruegge82\shipstage\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new kruegge82\shipstage\Api\DefaultApi( // 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(), $config ); $data = new \kruegge82\shipstage\Model\Data(); // \kruegge82\shipstage\Model\Data try { $result = $apiInstance->api2ViewsCreatePackage($data); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->api2ViewsCreatePackage: ', $e->getMessage(), PHP_EOL; }
API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| DefaultApi | api2ViewsCreatePackage | POST /api/v2.0/package/create/ | Create Package |
| DefaultApi | api2ViewsGetLabel | GET /api/v2.0/package/{package_id}/label | Get Label |
| DefaultApi | api2ViewsGetPackage | GET /api/v2.0/package/{package_id}/ | Get Package |
Models
- DHLDataModel
- DHLItem
- DHLPackage
- DangerousGoodType
- Data
- Detail
- Endorsement
- Error
- GLSDataModel
- GLSPackage
- GetPackageData
- IDSDataModel
- IDSPackage
- PickupTime
- ReturnPackageData
- ShipmentType
- State
- Success
- TNTDataModel
- TNTItem
- TNTPackage
- TermsOfShipment
- UPSDataModel
- UPSItem
- UPSPackage
Authorization
TokenAuth
- Type: Bearer authentication
Tests
To run the tests, use:
composer install vendor/bin/phpunit
Author
About this package
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
2.0- Generator version:
7.11.0
- Generator version:
- Build package:
org.openapitools.codegen.languages.PhpNextgenClientCodegen