macropage / sdk-ebay-rest-account
<b>账户API</b> 允许卖家配置他们的eBay卖家账户,包括卖家的政策(履行政策、支付政策和退货政策)、选择加入或退出eBay卖家计划、配置销售税表和获取账户信息。<br><br>详细信息
dev-master
2019-03-04 00:27 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: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-23 03:07:01 UTC
README
<b>账户API</b> 允许卖家配置他们的eBay卖家账户,包括卖家的政策(履行政策、支付政策和退货政策)、选择加入或退出eBay卖家计划、配置销售税表和获取账户信息。
有关此API中方法限制和可用性的详细信息,请参阅 <a href="/api-docs/sell/account/overview.html#acct-restrictions">API限制。
此PHP软件包由 OpenAPI Generator 项目自动生成
- API版本:v1.3.0
- 软件包版本:2.3.2
- 构建软件包:org.openapitools.codegen.languages.PhpClientCodegen
需求
PHP 5.5 及更高版本
安装和用法
Composer
要通过 Composer 安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/macropage/sdk-ebay-rest-account.git"
}
],
"require": {
"macropage/sdk-ebay-rest-account": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/sdk-ebay-rest-account/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请遵循 安装和用法过程,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: api_auth $config = macropage\SDKs\ebay\rest\account\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new macropage\SDKs\ebay\rest\account\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 ); $fulfillmentPolicyRequest = new \macropage\SDKs\ebay\rest\account\Model\FulfillmentPolicyRequest(); // \macropage\SDKs\ebay\rest\account\Model\FulfillmentPolicyRequest | Request to create a seller account fulfillment policy. try { $result = $apiInstance->createFulfillmentPolicy($fulfillmentPolicyRequest); 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
模型文档
- 金额
- 类别类型
- 存款
- 错误
- 错误参数
- 履行政策
- 履行政策请求
- 履行政策响应
- InlineResponse400
- 国际退货覆盖类型
- 支付方式
- 支付政策
- 支付政策请求
- 支付政策响应
- 支付计划响应
- 计划
- 计划
- 费率表
- 费率表响应
- 收款人账户引用
- 地区
- 地区集
- 退货政策
- 退货政策请求
- 退货政策响应
- 销售税
- 销售税基础
- 销售税
- 销售限制
- 销售权限
- 设置履行政策响应
- 设置支付政策响应
- 设置退货政策响应
- 运输选项
- 运输服务
- 时间长度
授权文档
api_auth
- 类型: OAuth
- 流程: accessCode
- 授权URL: https://auth.ebay.com/oauth2/authorize
- 作用域:
- https://api.ebay.com/oauth/api_scope/sell.account.readonly: 查看您的账户设置
- https://api.ebay.com/oauth/api_scope/sell.account: 查看和管理您的账户设置