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!
- Install Composer
- Complete this guide -> Registering as a developer
- Complete this guide -> Registering your Selling Partner API application
- Run
composer install
- Fill out .env file
- Follow Self Authorization and receive
refresh_token
- Add
refresh_token
to .env file - Run
index.php
and you should see avar_dump
of orders data from API