Airbrite Node
Airbrite.io makes it easy to bring e-commerce logic in the client-side of your application. This is an npm wrapper for Airbrite.io.
Installation
Add this line to your application's package.json under dependencies:
"airbrite": "*"
And then execute:
$ npm install
Or install separately:
npm install airbrite
Airbrite Documentation
Documentation is available at https://www.airbrite.io/documentation
Usage
Configuration
var airbrite = 'airbrite'"{{Airbrite Access Token}}";
Overview
Resources can be accessed through the airbrite instance. These methods accept optional callbacks:
airbriteproduct;
Resource methods also return promises (supported by when.js)
airbritecustomer ;
Resources
Methods:
- create(params)
- update(params)
- list()
- find(query)
- findOne(query)
- destroy(id)
List of Resources
- address
- customer
- event
- line_item
- log
- order
- payment
- product
- shipment
Examples
Creating a product
var params = "sku": "panda" "price": 100 airbriteproducts ;
Creating an order
airbriteorders;
Updating a customer
airbritecustomer;
Retrieving orders
airbriteorders;
Finding orders
airbriteorders;
Finding a specific order
airbriteorders;
Deleting an order
airbriteorders;
Questions, Comments, Bugs?
Please email support@airbriteinc.com or add an issue.