0.2.3 • Published 4 years ago
@diegomax/ucrmjs v0.2.3
UCRMJS - Wrapper library around Ubiquiti's UCRM Rest API
This is a NodeJS library around Ubiquiti's UCRM API.
This code is in very alpha stages, API is NOT yet frozen and might change without notice.
Example Usage
npm install @diegomax/ucrmjs
const UCRM = require('@diegomax/ucrmjs');
let config = {
// String: Fully qualified domain name to your UCRM installation.
"fqdn": "your.ucrmdomain.com",
// Boolean: Connect using SSL
"ssl": true,
// Allows the use of self-signed SSL certificates
"allowSelfSigned": true,
// API Token (You can generate one from UCRM's "System > Security"),
"token": "ucrmapitoken"
}
// Instantiate an UCRM instance.
// By using getInstance() you are assured that the same
// instance will always be returned (singleton behavior);
let ucrm = new UCRM(config).getInstance();
// Get an array with all services. All methods return promises.
ucrm.getServices()
.then(services => {
console.log(services[0]);
})
Check the source code for a list of all the implemented methods.
License: MIT.
0.2.3
4 years ago
0.2.2
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.7
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.0
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.0.8
4 years ago
0.1.3
4 years ago
0.0.7
4 years ago
0.0.5
4 years ago
0.0.6
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago