Samanage.js
Samanage API implementation for NodeJS
NOTE: This lib is a work in progress. At the moment I'm implementing functionality that I utilize in my day job. I welcome all contributions and tips.
TODO
*Actually write this usage guide.
Simple Usage
// These ID's are used for the resolution states for incidents. You can obtain these ID's by looking at the requests made through the GUIlet samanage = new stateID: resolved: 68591 on_hold: 68590 awaiting_input: 68589 assigned: 68588 "new": 68587 ; // Bearer token// You can get the bearer token from viewing your own profile as an admin in Samanagesamanage; // Basic authsamanage; let incidents = samanage;let MessageTemplate = samanageMessageTemplate; let testMessage = getMessageObject; incidents;
Searching
let incidents = samanage; // Search can be a samanage URI or an object of key: value pairs. These pairs must be a field in your samanage instance to searchincidents