cdma-numiscorner/ebay-sell-finance-api

此API用于检索卖家付款和与这些付款相关的货币交易详情。

v1.0 2022-09-05 13:45 UTC

This package is auto-updated.

Last update: 2024-09-05 18:28:38 UTC


README

此API用于检索卖家付款和与这些付款相关的货币交易详情。

安装与使用

需求

PHP 7.4 及以上版本。也应与PHP 8.0 兼容。

Composer

要使用Composer安装绑定,请在 composer.json 中添加以下内容

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@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\EbayFinanceApiClient\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new OpenAPI\EbayFinanceApiClient\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
);
$payout_id = 'payout_id_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($payout_id);
    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
  • 作用域:

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

关于此包的信息

此PHP包是由OpenAPI Generator项目自动生成的

  • API版本: v1.12.0
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen