kruegge82/shipstage-php-sdk
最新稳定版本:0.0.4
Composer 安装命令:
composer require kruegge82/shipstage-php-sdk
包简介
Wenn Sie die API verwenden möchten, wenden Sie sich bitte an den Support, um ein Authentifizierungstoken zu erhalten.
README 文档
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
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2025-01-28