A PHP example of how to integrate with the Fulfillment Order Manager
All examples use the popular Guzzle library for creating http calls
Found in
src/setup.php
This file makes an post request to https://oauth.cimpress.io/v2/token
with the client credentials and returns an authentification token.
This file can not be run and only serves as setup for the other examples.
Found in
src/get-item.php
If run, this file will get the item details for a specified item, you will have to change this to one of your items in the file itself.
Found in
src/get-notifications.php
If run, this file will get the new notifications for a specified fulfiller, you will have to change this to your fulfiller.
- A working PHP 5.6 (or higher) environment
- JSON extension has to be enabled
- Composer has to be instaled
- Run
composer install
- Copy and paste
.env.example
to.env
and fill it out with your client credentials - Run either one of the examples with
php src/get-item.php
orphp src/get-notifications.php