1.1.1 • Published 6 years ago

cucm-risdevice-query v1.1.1

Weekly downloads
12
License
MIT
Repository
-
Last release
6 years ago

NodeJS Wrapper for the CUCM RISDB Service

Install

npm install cucm-risdevice-query

* This module does not perform HTTPS requests to the RIS Endpoint

Example

const ris = require('cucm-risdevice-query').RisQuery;
const request = require('request');
const devices = [
 'SEP285261FAE060',
 'SEPE4C72266AE30'
];
const risReqXml = ris.createRisDoc({
  version: 'version of cucm',
  query: devices
});

const url = `https://<cucm ip>:8443` + ris.risPath;
/**
 * The RISPATH is dependent on CUCM Version
 * For Version 9+: /realtimeservice2/services/RISService70
 * For Version 8 and Below: /realtimeservice/services/RisPort70
 */
request.post({
  url,
  body: risReqXml,
  headers: {
   'Content-Type': 'text/xml'
  },
  auth: {
    username: 'user',
    password: 'pass'
  },
  strictSSL: false
}, (err, resp, body) => {
  const parsedResponse = ris.parseResponse(body);
  // Current Parsed Response Object
  // [{ name: 'SEP...', ip: 'IP Address' }]
});

Contributing

If you would like to contribute to the project and/or fork, clone the project to a directory and perform the following:

project_dir>npm install
project_dir>npm install -g typescript
project_dir>tsc -w

Use the src directory to modify add new .ts files

License


MIT

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago