ced_test1/mcf-sdk

此包的最新版本(dev-master)没有可用的许可证信息。

管理报告、目录、定价、库存和履行外发订单的卖家合作伙伴API。

dev-master 2023-03-17 09:42 UTC

This package is not auto-updated.

Last update: 2024-09-28 16:20:43 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/Ced-mcf/vendor/autoload.php');

入门指南

请按照 安装过程 进行操作,然后运行以下命令

<?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端点

所有URI均相对于 https://sellingpartnerapi-na.amazon.com

模型

授权

所有端点均无需授权。

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

关于此包

此PHP包是由 OpenAPI Generator 项目自动生成的

  • API版本: 2021-06-30
  • 构建包: org.openapitools.codegen.languages.PhpClientCodegen