The Analytics API provides information about a seller's business performance. The getTrafficReport method shows how buyers are engaging with listings and the getSellerStandardsProfile methods show if the seller is meeting buyer expectations.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: v1.0.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen
PHP 5.5 and later
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/nopolabs/ebay_sell_analytics_v1_oas2_php.git"
}
],
"require": {
"nopolabs/ebay_sell_analytics_v1_oas2_php": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
require_once('/path/to/ebay_sell_analytics_v1_oas2_php/vendor/autoload.php');
To run the unit tests:
composer install
./vendor/bin/phpunit
Please follow the installation procedure and then run the following:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: Authorization Code
$config = Nopolabs\EBay\Sell\Analytics\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Nopolabs\EBay\Sell\Analytics\Api\SellerStandardsProfileApi(
// 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
);
try {
$result = $apiInstance->findSellerStandardsProfiles();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SellerStandardsProfileApi->findSellerStandardsProfiles: ', $e->getMessage(), PHP_EOL;
}
?>
All URIs are relative to https://api.ebay.com/sell/analytics/v1
Class | Method | HTTP request | Description |
---|---|---|---|
SellerStandardsProfileApi | findSellerStandardsProfiles | GET /seller_standards_profile | |
SellerStandardsProfileApi | getSellerStandardsProfile | GET /seller_standards_profile/{program}/{cycle} | |
TrafficReportApi | getTrafficReport | GET /traffic_report |
- Cycle
- Definition
- Error
- ErrorParameter
- FindSellerStandardsProfilesResponse
- Header
- Metadata
- MetadataHeader
- MetadataRecord
- Metric
- Record
- Report
- StandardsProfile
- Value
- Type: OAuth
- Flow: accessCode
- Authorization URL: https://auth.ebay.com/oauth2/authorize
- Scopes:
- https://api.ebay.com/oauth/api_scope/sell.analytics.readonly: View your selling analytics data, such as performance reports