dansmaculotte / inventoryplanner-php
PHP SDK for Inventory Planner API
dev-master
2022-05-30 07:45 UTC
Requires
- php: ^7.2
- guzzlehttp/guzzle: ^6.5
- phpoffice/phpspreadsheet: ^1.10
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-10-20 00:37:25 UTC
README
Please refer to Inventory Planner documentation for API specifications.
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.