Node Module For ServiceNow API
Docs for api available from ServiceNow website
Inspired by service_now ruby gem for use at Yale University.
Currently Supports:
- Making queries on tables
- Wrappers for "incident" and "user" tables
- Can fetch using generic table format as well.
Usage
- Objects returned in same json format as servicenow json api
var options = {
user: process.env.SN_USERNAME,
pass: process.env.SN_PASSWORD,
instance: process.env.SN_INSTANCE
};
var ServiceNow = require('servicenow')(options);
var Incident = ServiceNow.Incident;
Incident.find('INC0123456', function(err, incident) {
console.log(incident.description);
});
Bugs and/or Feature Requests
- Create an issue
Contributing
- Fork it!
- Create a feature branch (
git checkout -b cool-new-feature
) - Commit and push
- Create new Pull Request