glasswalllab / dearconnector
Connection to Dear Systems
dev-main
2021-09-09 03:09 UTC
Requires
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- orchestra/testbench: ^6.0
This package is auto-updated.
Last update: 2025-04-09 11:04:04 UTC
README
This package provides an integration to DEAR Systems (https://dearsystems.com/).
API Docs - https://dearinventory.docs.apiary.io/
Installation
You can install the package via composer:
composer require glasswalllab/dearconnector
Usage
-
Setup API Application in your DEAR Systems account (Integrations -> API -> +)
-
Include the following variables in your .env
DEAR_ACCOUNT_ID=YOUR_ACCOUNT_ID
DEAR_APP_KEY=YOUR_APP_KEY
DEAR_BASE_API_URL=https://inventory.dearsystems.com/externalapi/v2/
- Run php artisan migrate to create the api_logs database table
Sample Usage (Laravel)
use glasswalllab\arofloconnector\DearConnector; //Get Customer List $dear = new DearConnector(); $dear->CallDEAR('customer','get',[]); //Post Sale $dear = new DearConnector(); $testSale = array( 'CustomerID' =>'bc8e0faa-31fb-4d39-93f4-d91a5d192b1c', 'location' => 'Main Warehouse', ); $dear->CallDEAR('sale','POST',$testSale);
Security
If you discover any security related issues, please email sreid@gwlab.com.au instead of using the issue tracker.