1.0.8 • Published 2 years ago
smartlist-api v1.0.8
Smartlist API
This is the official repository for the Smartlist API. Visit the website here: https://smartlist.ga
Usage
Initialize API
You'll need an API key. Create one at the developer dashboard
const Smartlist = require("smartlist-api");
let api = new Smartlist(process.env.API_KEY);
Test key
api.testKey().then(e => console.log(e))
Get finance breakdown
api.getFinances().then(e => console.log(e))
Get list of authorized locations in an md5 hashing
api.getAuthorizedLocations().then(e => console.log(e))
Get list of custom rooms
api.getCustomRooms().then(e => console.log(e))
Get list of labels
api.getLabels().then(e => console.log(e))
Get task count
api.getTaskCount().then(e => console.log(e))
Get shopping list count
api.getTaskCount().then(e => console.log(e))
Get user count
api.getUserCount().then(e => console.log(e))
Get item count of a room
api.getItemCount("kitchen").then(e => console.log(e))
Get number of items in a custom room
api.getCustomRoomCount(30).then(e => console.log(e))