Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ionafan2/selling-partner-api-php-sandbox
Working PHP implementation of SP API. Just fill out .env file!
https://github.com/ionafan2/selling-partner-api-php-sandbox
Last synced: 3 months ago
JSON representation
Working PHP implementation of SP API. Just fill out .env file!
- Host: GitHub
- URL: https://github.com/ionafan2/selling-partner-api-php-sandbox
- Owner: ionafan2
- License: mit
- Created: 2020-12-02T22:55:17.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-02T23:09:07.000Z (about 4 years ago)
- Last Synced: 2024-08-03T07:02:27.753Z (6 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 11
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-spapi - ionafan2 - partner-api-php-sandbox?style=plastic&logoWidth=1) (Docs / Library)
README
# SP API PHP Sandbox
I guess you just like me, prefer to see working implementation instead of reading some documentation.
So here you are! Working PHP implementation of SP API.
This sandbox will show you all initial steps you need to do to lunch SP API in your project.
In my project we use Symfony to manage dependencies and properties and store AccessToken in DB.
Feel free to contribute to this repo!## Requirements
* Install [Composer](https://getcomposer.org/)
* Complete this guide -> [Registering as a developer](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#registering-as-a-developer)
* Complete this guide -> [Registering your Selling Partner API application](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#registering-your-selling-partner-api-application)## How to run?
* Run `composer install`
* Fill out [.env](.env) file
* Follow [Self Authorization](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/developer-guide/SellingPartnerApiDeveloperGuide.md#self-authorization) and receive `refresh_token`
* Add `refresh_token` to [.env](.env) file
* Run `index.php` and you should see a `var_dump` of orders data from API