Skip to content

saurabhkkanaujia/mcf11

Repository files navigation

Ced-mcf

The Selling Partner API for Reports lets you retrieve and manage a variety of reports that can help selling partners manage their businesses.

For more information, please visit https://sellercentral.amazon.com/gp/mws/contactus.html.

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/Ced-mcf/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new Ced\Mcf\Api\ReportsApi(
    // 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()
);
$report_id = 'report_id_example'; // string | The identifier for the report. This identifier is unique only in combination with a seller ID.

try {
    $apiInstance->cancelReport($report_id);
} catch (Exception $e) {
    echo 'Exception when calling ReportsApi->cancelReport: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://sellingpartnerapi-na.amazon.com

Class Method HTTP request Description
ReportsApi cancelReport DELETE /reports/2021-06-30/reports/{reportId}
ReportsApi cancelReportSchedule DELETE /reports/2021-06-30/schedules/{reportScheduleId}
ReportsApi createReport POST /reports/2021-06-30/reports
ReportsApi createReportSchedule POST /reports/2021-06-30/schedules
ReportsApi getReport GET /reports/2021-06-30/reports/{reportId}
ReportsApi getReportDocument GET /reports/2021-06-30/documents/{reportDocumentId}
ReportsApi getReportSchedule GET /reports/2021-06-30/schedules/{reportScheduleId}
ReportsApi getReportSchedules GET /reports/2021-06-30/schedules
ReportsApi getReports GET /reports/2021-06-30/reports

Models

Authorization

All endpoints do not require authorization.

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: 2021-06-30
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published