0.0.2 • Published 4 years ago

node-simpra v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

NPM version

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

EndpointFunctionUsageDetail

Contributing

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

0.0.2

4 years ago

0.0.1

4 years ago