jasara/php-amzn-selling-partner-api
Composer 安装命令:
composer require jasara/php-amzn-selling-partner-api
包简介
A fluent interface for Amazon's Selling Partner API in PHP
README 文档
README
PHP SDK for Amazon's Selling Partner API
This is a work-in-progress implementation of Amazon's Selling Partner API in PHP. This package aims to provide an easy to use, fluent interface to the API.
If you would like to participate in the development of this SDK, please get in touch with us at support@jasaratech.com
Documentation
This README provides some basic details about the package; detailed documentation is available at: https://phpspa.com/docs/getting-started/
Installation
You can use Composer to install this package in your projects:
composer require jasara/php-amzn-selling-partner-api
Usage
The best way to understand how to use this SDK is by reading the documentation for the specific call you would like to make. In general, you should expect a fluent interface, such as:
use Jasara\AmazonSPA\AmznSPA; $amazon = new AmznSPA($config); $response = $amzn->feeds->getFeed($feed_id); if($response->errors) { return $response->errors; // ErrorListSchema } if($response->feed) { $document = $amazon->feeds->getFeedDocument($feed->result_feed_document_id); }
Config
When you instantiate the AmazonSPA class, the config is an object that should be initialized and then passed in:
use Jasara\AmznSPA\AmznSPAConfig; $config = new AmznSPAConfig( marketplace_id: 'ATVPDKIKX0DER', application_id: '***', lwa_access_token: '***', lwa_refresh_token: '***', // If you would like the SDK to automatically fetch a new access token if necessary lwa_client_id: '***', lwa_client_secret: '***', aws_access_key: '***', aws_secret_key: '***', );
License
This project is not licensed for commercial usage, but you are hereby granted the right to use this project for commercial purposes as long as your annual revenue is under $100,000 USD.
Above that level, please visit our Sponsors page to obtain an automatic commercial license.
You are free to use the project for non-commercial purposes.
Why a Non Commercial License?
Judging by the current pace of development by the Amazon Selling Partner API team, it looks like they plan to develop at a rapid pace, so it will be an effort to keep up with all the changes. We would like this project to start with sustainability in mind, rather than have a project that only works properly for several months and then no longer receives updates.
If reducing costs is more important to you than development speed and sustainability, you can always generate your own PHP SDK using the swagger-gen tools that the Selling Partner API team provides.
jasara/php-amzn-selling-partner-api 适用场景与选型建议
jasara/php-amzn-selling-partner-api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 48.6k 次下载、GitHub Stars 达 13, 最近一次更新时间为 2021 年 09 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 jasara/php-amzn-selling-partner-api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jasara/php-amzn-selling-partner-api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 48.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 19
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: CC-BY-NC-SA-4.0
- 更新时间: 2021-09-27