1.0.4 • Published 3 years ago
sellix-api v1.0.4
sellix-api
Wrapper for the sellix.io REST API.
const { Sellix } = require('sellix-api')
const api = new Sellix(api_key)
Installation
npm install sellix-api --save
Sellix
All methods need a callback.
getProduct(id: string, callback: (err: any, product: IProduct) => any)
Retrieves a Product by its uniqid
getProducts(callback: (err: any, products: IProduct[]) => any)
Retrieves an array of all the Products.
getOrder(id: string, callback: (err: any, order: IOrder) => any)
Retrieves an Order by its uniqid
getOrders(callback: (err: any, orders: IOrder[]) => any)
Retrieves an array of all the Orders.