ced_test / mcf-sdk
该软件包最新版本(dev-master)没有提供许可证信息。
管理报告、目录、定价、库存和出库订单的销售合作伙伴API。
dev-master
2023-03-17 07:06 UTC
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-09-28 12:29:23 UTC
README
销售合作伙伴API的报表功能允许您检索和管理各种报告,帮助销售合作伙伴管理业务。
如需更多信息,请访问 https://sellercentral.amazon.com/gp/mws/contactus.html。
安装与使用
需求
PHP 7.4 及以上版本。也应与PHP 8.0 兼容。
Composer
要使用 Composer 安装绑定,请在 composer.json
中添加以下内容
{ "repositories": [ { "type": "vcs", "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" } ], "require": { "GIT_USER_ID/GIT_REPO_ID": "*@dev" } }
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/mcf-sdk/vendor/autoload.php');
入门指南
请按照 安装步骤 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Ced\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 端点
所有 URI 都是相对于 https://sellingpartnerapi-na.amazon.com
模型
- CreateReportResponse
- CreateReportScheduleResponse
- CreateReportScheduleSpecification
- CreateReportSpecification
- Error
- ErrorList
- GetReportsResponse
- Report
- ReportDocument
- ReportSchedule
- ReportScheduleList
授权
所有端点无需授权。
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
关于此软件包
此PHP软件包由OpenAPI Generator项目自动生成
- API版本:
2021-06-30
- 构建软件包:
org.openapitools.codegen.languages.PhpClientCodegen