bramatom/selling-partner-amazon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bramatom/selling-partner-amazon

最新稳定版本:0.1.3

Composer 安装命令:

composer require bramatom/selling-partner-amazon

包简介

Selling partner amazon API

README 文档

README

Selling Partner Amazon Library is a set of classes that provides developers with a way to connect to the Amazon Selling Partner API. This library allows developers to access and manage their Amazon seller accounts, retrieve and update product information, fulfill orders, and more. The library is designed to be easy to use and includes methods for handling common tasks such as authenticating with the API, making HTTP requests, and handling errors. It is a valuable tool for anyone looking to build applications or integrations with the Amazon Selling Partner API.

Installation

Use the package manager composer to install Amazon Selling Partner.

composer require bramatom/selling-partner-amazon

Usage

AmazonMarketplace

The AmazonMarketPlace class represents an Amazon marketplace.

The class constructor accepts a marketplace ID as a parameter and uses the AmazonMarketplaceData::getById method to retrieve the marketplace data from the database. If the data is found, the class fields are set with the retrieved data, otherwise the error field is set to true.

The class includes the following public methods:

  • getId: returns the ID of the marketplace
  • getName: returns the name of the marketplace
  • getZone: returns the zone of the marketplace
  • getEndpoint: returns the endpoint of the marketplace
$marketplace = new AmazonMarketPlace(AmazonMarketplaceId::NORTH_AMERICA);

if ($marketplace->error) {
    // handle error
} else {
    echo 'ID: ' . $marketplace->getId() . "\n";
    echo 'Name: ' . $marketplace->getName() . "\n";
    echo 'Zone: ' . $marketplace->getZone() . "\n";
    echo 'Endpoint: ' . $marketplace->getEndpoint() . "\n";
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

统计信息

  • 总下载量: 356
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-12-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固