/inventoryplanner-php

[WIP] PHP SDK for Inventory Planner API

Primary LanguagePHPMIT LicenseMIT

Inventory Planner API PHP SDK

Please refer to Inventory Planner documentation for API specifications.

Documentation

Installation

You can install the package via composer:

composer require dansmaculotte/inventoryplanner-php

Usage

Purchase Order

List purchase orders

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->list();

print_r($results['purchase-orders']);

Get opened purchase orders

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->listOpened();

print_r($results['purchase-orders']);

Get purchase order by Id

use DansMaCulotte\InventoryPlanner\PurchaseOrder;

$po = new PurchaseOrder(API_KEY, ACCOUNT_ID);
$results = $po->getById('aaaaaabbbbbbccccccdddddd');

print_r($results['purchase-order']);

License

The MIT License (MIT). Please see License File for more information.