0.0.5 • Published 4 years ago
@bambulabs/node-simpra v0.0.5
node-simpra
Simple Node.js wrapper for Simpra API.
Getting Started
Installation
npm install node-simpra
Setup
Basically require node-simpra
and create a new instance with new NodeSimpra()
.
If you have all of your credentials, you can use new NodeSimpra(token)
initialization to access all functions.
If you already have your token
, then you can create instance using new NodeSimpra(token)
OR you can set token using simpra.setToken(token)
.
Example
const NodeSimpra = require("node-simpra");
..
const simpra = new NodeSimpra(token);
// OR
const simpra = new NodeSimpra();
simpra.setToken(token);
Filtering
You can find more information about allowed filters in detail pages. For LIST functions, you can pass a filter object for filtering.
Example
const menu_items = await simpra.menu_items.list({
page: 1,
per_page_50,
status: "active"
});
Available Functions
Contributing
License
This project is licensed under the MIT License - see the LICENSE.md file for details.