1.0.0 • Published 5 years ago
node-sonarsoftware v1.0.0
Sonar.Software Node Module
This is an unofficial Sonar's API Node client.
Test it live at https://codesandbox.io/s/github/maddog986/node-sonarsoftware
Installation
npm install node-sonarsoftware
Usage
First you need to instantiate it.
const Sonar = require('node-sonarsoftware');
const sonarClient = new Sonar({
host: 'yourname.sonar.software',
username: 'your username',
password: 'your password'
});
Using the created client, call the methods you need, example:
sonarClient
.get('accounts')
.then(response => {
console.log('accounts:', response);
})
.catch(e => console.log('ERROR:', e));
License
Release Notes
1.0.0
5 years ago