cdma-numiscorner / ebay-account-api
<b>账户API</b> 允许卖家配置他们的eBay卖家账户,包括卖家的政策(履约政策、支付政策、退货政策)、选择加入或退出eBay卖家计划、配置销售税表以及获取账户信息。<br><br>详细信息
1.0
2020-12-30 10:11 UTC
Requires
- php: >=7.2
- 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-29 05:22:34 UTC
README
<b>账户API</b> 允许卖家配置他们的eBay卖家账户,包括卖家的政策(履约政策、支付政策、退货政策)、选择加入或退出eBay卖家计划、配置销售税表以及获取账户信息。
有关此API中方法可用性的详细信息,请参阅 <a href="/api-docs/sell/account/overview.html#requirements">账户API要求与限制</a>。
安装与使用
要求
PHP 7.2 及更高版本。
Composer
要通过Composer安装绑定,请将以下内容添加到 composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/cdma-numiscorner/EbayAccountApi.git" } ], "require": { "cdma-numiscorner/EbayAccountApi": "*@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: api_auth $config = OpenAPI\EbayAccountClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new OpenAPI\EbayAccountClient\Api\FulfillmentPolicyApi( // 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 ); $fulfillment_policy_request = new \OpenAPI\EbayAccountClient\Model\FulfillmentPolicyRequest(); // \OpenAPI\EbayAccountClient\Model\FulfillmentPolicyRequest | Request to create a seller account fulfillment policy. try { $result = $apiInstance->createFulfillmentPolicy($fulfillment_policy_request); print_r($result); } catch (Exception $e) { echo 'Exception when calling FulfillmentPolicyApi->createFulfillmentPolicy: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI均相对于 https://api.ebay.com/sell/account/v1
模型
- 金额
- 类别类型
- 存款
- 错误
- 错误参数
- 履约政策
- 履约政策请求
- 履约政策响应
- 国际退货覆盖类型
- KYC检查
- KYC响应
- 支付方式
- 支付政策
- 支付政策请求
- 支付政策响应
- 支付计划上线响应
- 支付计划上线步骤
- 支付计划响应
- 项目
- 项目列表
- 费率表
- 费率表响应
- 收款人账户参考
- 区域
- 区域集
- 退货政策
- 退货政策请求
- 退货政策响应
- 销售税
- 销售税基础
- 销售税列表
- 销售限制
- 销售权限
- 设置履约政策响应
- 设置支付政策响应
- 设置退货政策响应
- 配送选项
- 配送服务
- 时间持续时间
授权
api_auth
- 类型:
OAuth
- 流程:
accessCode
- 授权URL:
https://auth.ebay.com/oauth2/authorize
- 作用域:
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包是由 OpenAPI Generator 项目自动生成的
- API版本:
v1.6.0
- 包版本:
1.0
- 包版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen