This is to talk to ServiceNow instances to work thru the data, generate statistics and other useful information
This is currently under aplha testing and will be updated rapidly
sn_do.rb- This is our SN_DO module and Classes for interacting with Incidents and Assetsexample.rb- How to use SN_DO in a useful way calling most methods to meet some goals
Requires Ruby 2.0.0
require 'net/https'
require 'rexml/document'
require 'net/smtp'for using SN_DO and connecting to ServiceNow and getting a count
# SN_DO::INC.new('instance_name','username','password')
SN_DO::INC.new('demo017','admin','admin')
httpresult = SN_DO::INC.retrieve('XML','assignment_group', assign_group_id)
incident_list = SN_DO::INC.parse_xml(httpresult.body)
put incident_list.countexample.rb is going to have more detailed example then this
- build tests
- document things better
- build out the asset class