ebay_sell_analytics_v1_oas2_php

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

Requirements

PHP 5.5 and later

Installation & Usage

Composer

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

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/ebay_sell_analytics_v1_oas2_php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

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: 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;
}

?>

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

Authorization Code

Author