0.0.1 • Published 4 years ago
servicenow-client-async v0.0.1
servicenow-client-async
async/await Node.js Wrapper library for ServiceNow REST API.
How to use this module
Run the following command to install the package:
npm install servicenow-client-asyncExample:
const serviceNow = require('servicenow-client-async');
async function main(){
  const data = {
  risk: 'low'
  };
  const serviceNowClient = new serviceNow.Client('dev123', 'username', 'password');
  await serviceNowClient.createTable('incident', data);
  await serviceNowClient.updateTable('incident', 'INC0003331', data);
  await serviceNowClient.getTable('incident', 'INC0003331');
  await serviceNowClient.removeTable('incident', 'INC0003331');
}
main().catch(
  console.log
);Done
- createTable
 - updateTable
 - getTable
 - getSubTable
 - removeTable
 
TODO
- getAttachments
 - Other things that you think is useful, feel free to open PR.