PHP code example of cdma-numiscorner / ebay-sell-finance-api
1. Go to this page and download the library: Download cdma-numiscorner/ebay-sell-finance-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cdma-numiscorner / ebay-sell-finance-api example snippets
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;
}