This plugin requires node >= 6.0.0
and npm >= 1.4.15
(latest stable is recommended).
> npm install boodskap-commons --save
var Boodskap = require('boodskap-commons');
var config = {
"apiUrl": "",
"mqtt": {
"hostName": '',
"portNo": 443,
"ssl": true
}
}
# new Boodskap(config, authResponse);
# if you have already logged in pass the response json to the boodskap module