swaggerlib / iws-isa
dev-main
2024-06-01 10:38 UTC
Requires
- php: ^7.4 || ^8.0
- 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 auto-updated.
Last update: 2024-10-01 00:08:14 UTC
README
运输标签应用程序
此PHP软件包由Swagger Codegen项目自动生成
- API版本:v1
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
要求
PHP 5.5及更高版本
安装与使用
Composer
要通过Composer安装绑定,请在composer.json
中添加以下内容
{
"minimum-stability": "dev",
"repositories": [
{
"type": "vcs",
"url": "https://adhudasia@bitbucket.org/itembase/iws-isa.git"
}
],
"require": {
"itembase/iws-isa": "master"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照安装和配置过程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\AuthenticationApi( // 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 ); $body = new \Swagger\Client\Model\ShippingLabelAccessCredentials(); // \Swagger\Client\Model\ShippingLabelAccessCredentials | $instance_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $test_mode = false; // bool | try { $result = $apiInstance->create($body, $instance_id, $test_mode); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthenticationApi->create: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthenticationApi( // 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 ); $body = new \Swagger\Client\Model\ShippingLabelUpdateCredentials(); // \Swagger\Client\Model\ShippingLabelUpdateCredentials | $instance_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $connection_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $test_mode = false; // bool | try { $result = $apiInstance->patch($body, $instance_id, $connection_id, $test_mode); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthenticationApi->patch: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthenticationApi( // 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 ); $instance_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $connection_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | try { $result = $apiInstance->remove($instance_id, $connection_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthenticationApi->remove: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\AuthenticationApi( // 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 ); $body = new \Swagger\Client\Model\ShippingLabelUpdateCredentials(); // \Swagger\Client\Model\ShippingLabelUpdateCredentials | $instance_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $connection_id = "38400000-8cf0-11bd-b23e-10b96e4ef00d"; // string | $test_mode = false; // bool | try { $result = $apiInstance->update($body, $instance_id, $connection_id, $test_mode); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthenticationApi->update: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://api.itembase.com/connectivity
模型文档
- 地址
- 地址信息
- 备选发送到
- 备选发送到地址
- 身份验证响应
- 可用服务
- 取消运输标签响应
- 分类项目
- 分类响应数据
- 配置阶段
- 收货人地址
- 发货人地址
- 创建运输标签请求
- 创建运输标签响应
- 关税信息
- 关税项目
- DDP信息
- 空对象响应
- 错误字段
- 错误响应
- 事件
- 扩展属性
- 扩展属性项目
- 获取位置请求
- 获取位置响应
- 获取位置响应位置
- 获取运输标签响应
- 获取运费请求
- 获取运费响应
- 获取运费响应费率
- 获取运输服务响应
- HS代码分类状态请求
- HS代码分类状态响应
- HS代码请求
- HS代码响应
- InlineResponse200
- 无效项目
- 项目
- 到岸成本
- 行项目
- Linnworks添加用户请求
- Linnworks添加用户响应
- Linnworks导出属性映射请求
- Linnworks导出属性映射响应
- Linnworks取消运输请求
- Linnworks运输标签请求
- Linnworks运输标签响应
- Linnworks更新配置请求
- Linnworks用户可用服务请求
- Linnworks用户可用服务响应
- Linnworks用户配置项
- Linnworks用户配置请求
- Linnworks用户配置响应
- 列表值
- 订单
- 订单扩展属性
- 订单项目
- 订单请求
- 订单响应
- 订单运输信息请求
- 订单运输信息响应
- 订单运输信息响应产品
- 订单运输信息响应运输
- 包裹
- 产品
- 产品Dto
- 产品请求
- 产品响应
- 报价请求
- 报价响应
- 费率规则数据
- 原因
- 发送从
- 发送到
- 服务附加描述
- 服务配置项
- 服务国家
- 服务级别
- 服务属性
- 运输
- 发货人
- 运输标签访问凭证
- 运输标签更新凭证
- 运输包裹
- ShopifyExt获取费率请求
- ShopifyExt获取费率响应
- ShopifyExt项目
- ShopifyExt位置
- ShopifyExt费率响应数据
- Shopify费率
- ShoplineExt获取费率请求
- ShoplineExt获取费率响应
- ShoplineExt项目
- ShoplineExt位置
- ShoplineExt费率响应数据
- SkyPostal实时费率设置数据
- 按重量分割规则
- 提交包裹请求
- 提交包裹响应
- 跟踪运输响应
- 计量单位
- UPS实时费率设置数据
- 版本2设置主体
- 值
授权文档
bearer-jwt
- 类型:HTTP载体认证