PHP code example of cdma-numiscorner / ebay-sell-feed-api
1. Go to this page and download the library: Download cdma-numiscorner/ebay-sell-feed-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-feed-api example snippets
Configure OAuth2 access token for authorization: api_auth
$config = OpenAPI\EbaySellFeedApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\EbaySellFeedApi\Api\CustomerServiceMetricTaskApi(
// 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
);
$accept_language = 'accept_language_example'; // string | Use this header to specify the natural language in which the authenticated user desires the response.
$create_service_metrics_task_request = new \OpenAPI\EbaySellFeedApi\Model\CreateServiceMetricsTaskRequest(); // \OpenAPI\EbaySellFeedApi\Model\CreateServiceMetricsTaskRequest | Request payload containing version, feedType, and optional filterCriteria.
try {
$apiInstance->createCustomerServiceMetricTask($accept_language, $create_service_metrics_task_request);
} catch (Exception $e) {
echo 'Exception when calling CustomerServiceMetricTaskApi->createCustomerServiceMetricTask: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.