0.0.1 • Published 4 years ago

shinobi-cctv-api v0.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Shinobi Api

Example Usage

var ShinobiApi = require('shinobi-api');
var s = new ShinobiApi('[Shinobi URL]')
s.login('[EMAIL]', '[PASSWD]'); // or s.setApikey("[APIKEY]", "[GROUP ID]");

// Example: set All monitors to record for 10 minutes
s.monitor.getAll().then(mons => {
  mons.forEach(mon => {
    s.monitor.setModeTime(mon.mid, 'record', 10);
  })
})
0.0.1

4 years ago