承接 cdma-numiscorner/ebay-sell-finance-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cdma-numiscorner/ebay-sell-finance-api

最新稳定版本:v1.0

Composer 安装命令:

composer require cdma-numiscorner/ebay-sell-finance-api

包简介

This API is used to retrieve seller payouts and monetary transaction details related to those payouts.

README 文档

README

This API is used to retrieve seller payouts and monetary transaction details related to those payouts.

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?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 Endpoints

All URIs are relative to https://apiz.ebay.com/sell/finances/v1

Class Method HTTP request Description
PayoutApi getPayout GET /payout/{payout_Id}
PayoutApi getPayoutSummary GET /payout_summary
PayoutApi getPayouts GET /payout
SellerFundsSummaryApi getSellerFundsSummary GET /seller_funds_summary
TransactionApi getTransactionSummary GET /transaction_summary
TransactionApi getTransactions GET /transaction
TransferApi getTransfer GET /transfer/{transfer_Id}

Models

Authorization

api_auth

  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://auth.ebay.com/oauth2/authorize
  • Scopes:

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: v1.12.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

统计信息

  • 总下载量: 1.84k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: unlicense
  • 更新时间: 2022-09-05