bbb-promise
Version:
A library that acts as high-level bindings to the bigbluebutton REST API using request-promises to fulfill them
33 lines (26 loc) • 644 B
JavaScript
;
var util = require('./util');
function monitoring(host, salt) {
var mon = {
host: host,
salt: salt,
getMeetingInfo: function(meetingID) {
var qparams = {
meetingID: meetingID,
};
return util.GETAction(this.host, this.salt, "getMeetingInfo", qparams);
},
isMeetingRunning: function(meetingID) {
var qparams = {
meetingID: meetingID,
};
return util.GETAction(this.host, this.salt, "isMeetingRunning", qparams);
},
getMeetings: function() {
var qparams = {};
return util.GETAction(this.host, this.salt, "getMeetings", qparams);
}
};
return mon;
}
module.exports = monitoring;