macropage / sdk-ebay-rest-finance
此API用于检索卖家付款和与这些付款相关的货币交易详情。
1.4.0
2021-11-16 18:52 UTC
Requires
- php: >=7.2
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2 || 7.*
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.12
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-09-17 02:15:45 UTC
README
此API用于检索卖家付款和与这些付款相关的货币交易详情。
安装与使用
要求
PHP 7.3及以后版本。理论上也应与PHP 8.0兼容,但尚未测试。
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{ "repositories": [ { "type": "vcs", "url": "https://github.com/macropage/sdk-ebay-rest-finance.git" } ], "require": { "macropage/sdk-ebay-rest-finance": "*@dev" } }
然后运行composer install
手动安装
下载文件并包含autoload.php
<?php require_once('/path/to/sdk-ebay-rest-finance/vendor/autoload.php');
入门
请按照安装流程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: api_auth $config = macropage\SDKs\ebay\rest\finance\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new macropage\SDKs\ebay\rest\finance\Api\PayoutApi( // 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 ); $payoutId = 'payoutId_example'; // string | The unique identfier of the payout is passed in as a path parameter at the end of the call URI. <br/><br/>The <b>getPayouts</b> method can be used to retrieve the unique identifier of a payout, or the user can check Seller Hub to get the payout ID. try { $result = $apiInstance->getPayout($payoutId); print_r($result); } catch (Exception $e) { echo 'Exception when calling PayoutApi->getPayout: ', $e->getMessage(), PHP_EOL; }
API端点
所有URI均相对于https://apiz.ebay.com/sell/finances/v1
模型
授权
api_auth
- 类型:
OAuth
- 流程:
accessCode
- 授权URL:
https://auth.ebay.com/oauth2/authorize
- 作用域:
- https://api.ebay.com/oauth/api_scope/sell.finances: 查看和管理您的付款和订单信息,以显示这些信息,并允许您使用第三方应用程序发起退款
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此包
此PHP包是由OpenAPI Generator项目自动生成的
- API版本:
1.9.0
- 包版本:
1.9.0
- 包版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen