Skip to content

r4mmer/shinobi-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
  })
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published