0.2.3 • Published 5 years ago

@diegomax/ucrmjs v0.2.3

Weekly downloads
20
License
MIT
Repository
github
Last release
5 years ago

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

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.0.8

5 years ago

0.1.3

5 years ago

0.0.7

5 years ago

0.0.5

5 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago