ced_test1 / mcf-sdk
The Selling Partner APIs to manage Reports, Catalog, Pricing, inventory, and fulfillment outbound orders.
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-06-22 14:48:33 UTC
README
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
- CreateReportResponse
- CreateReportScheduleResponse
- CreateReportScheduleSpecification
- CreateReportSpecification
- Error
- ErrorList
- GetReportsResponse
- Report
- ReportDocument
- ReportSchedule
- ReportScheduleList
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