amorvan / ebay-sell-inventory-php-client
库存API用于创建和管理库存,并在eBay市场上发布和管理此库存。该API中还有将符合条件的活动eBay列表转换为库存API模型的方法。
dev-main
2024-03-10 22:14 UTC
Requires
- php: >=5.6
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-09-10 23:34:36 UTC
README
库存API用于创建和管理库存,并在eBay市场上发布和管理此库存。该API中还有将符合条件的活动eBay列表转换为库存API模型的方法。
安装与使用
要求
PHP 7.2及更高版本。
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github/zvps/ebay-sell-inventory-php-client.git" } ], "require": { "zvps/ebay-sell-inventory-php-client": "*@dev" } }
然后运行composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门指南
请按照安装过程进行,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: Authorization Code $config = Ebay\Sell\Inventory\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new Ebay\Sell\Inventory\Api\InventoryItemApi( // 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 \Ebay\Sell\Inventory\Model\BulkInventoryItem(); // \Ebay\Sell\Inventory\Model\BulkInventoryItem | Details of the inventories with sku and locale try { $result = $apiInstance->bulkCreateOrReplaceInventoryItem($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling InventoryItemApi->bulkCreateOrReplaceInventoryItem: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI均相对于https://api.ebay.com/sell/inventory/v1
模型
- 地址
- 金额
- 可用性
- 可用性分布
- 全部可用性
- 基本响应
- 最佳出价
- 批量eBay出价详情
- 批量获取库存项
- 批量获取库存项响应
- 批量库存项
- 批量库存项响应
- 批量迁移列表
- 批量迁移列表响应
- 批量出价
- 批量出价响应
- 批量价格数量
- 批量价格数量响应
- 批量发布响应
- 慈善机构
- 兼容性
- 兼容产品
- 尺寸
- eBay出价详情
- eBay出价详情
- eBay出价详情
- 错误
- 错误参数
- 费用
- 费用摘要
- 费用摘要响应
- 格式分配
- 地理坐标
- 获取库存项
- 获取库存项响应
- 间隔
- 库存项
- 库存项组
- 库存项列表
- 库存项响应
- 库存项
- 库存项
- 库存项
- 库存项
- 库存位置
- 库存位置完整信息
- 库存位置响应
- 列表详情
- 列表政策
- 位置
- 位置详情
- 位置响应
- 迁移列表
- 迁移列表响应
- 名称值列表
- 出价键
- 出价键
- 出价价格数量
- 出价响应
- 出价响应
- 出价SKU响应
- 出价
- 营业时间
- 包装重量和尺寸
- 门店自提可用性
- 价格数量
- 价格数量响应
- 定价摘要
- 产品
- 产品系列属性
- 产品标识符
- 通过库存项组发布请求
- 发布响应
- 寄送位置可用性
- 寄送位置可用性
- 覆盖运费
- 特殊营业时间
- 规格
- 税
- 时间持续时间
- 按...变化
- 版本
- 重量
- 通过库存项组请求撤回
- 撤回响应
授权
授权代码
- 类型:
OAuth
- 流程:
accessCode
- 授权URL:
https://auth.ebay.com/oauth2/authorize
- 作用域:
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包由OpenAPI Generator项目自动生成
- API版本:
1.14.0
- 包版本:
5.0.0
- 包版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen