Skip to content

A PHP example of how to integrate with the Fulfillment Order Manager

Notifications You must be signed in to change notification settings

Cimpress/FOMA-Integration-Example-in-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FOMA Integration Example in PHP

A PHP example of how to integrate with the Fulfillment Order Manager

Examples in this repository

All examples use the popular Guzzle library for creating http calls

Authentification

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.

Get Item Details

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.

Get Notifications

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.

Prerequisites

  • A working PHP 5.6 (or higher) environment
  • JSON extension has to be enabled
  • Composer has to be instaled

How to Run

  1. Run composer install
  2. Copy and paste .env.example to .env and fill it out with your client credentials
  3. Run either one of the examples with php src/get-item.php or php src/get-notifications.php

About

A PHP example of how to integrate with the Fulfillment Order Manager

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages