bigbluebutton-Github/labs/demos/lib/testapi.coffee

33 lines
944 B
CoffeeScript
Raw Normal View History

sha1 = require 'js-sha1'
bbbapi = require './bbbapi'
config = require '../config.json'
bbbServer = config.settings.IP + "/bigbluebutton/api/"
2014-05-13 01:45:48 +08:00
sharedSecret = config.settings.salt
console.log "will be creating a meeting on server: " + bbbServer
str = "name=Demo+Meeting&meetingID=Demo+Meeting&voiceBridge=70827&attendeePW=ap&moderatorPW=mp&record=false"
console.log(sha1("create" + str + sharedSecret))
createParams = {}
createParams.attendeePW = "ap"
createParams.moderatorPW = "mp"
createParams.record = false
createParams.voiceBridge = 70827
2014-06-14 02:01:32 +08:00
createParams.name = "Demo Meeting9"
createParams.meetingID = "Demo Meeting9"
joinParams = {}
joinParams.password = "mp"
joinParams.fullName = "Richard"
joinParams.meetingID = "Demo Meeting"
joinParams.redirect = false
serverAndSecret = {server: bbbServer, secret: sharedSecret}
exports.createParams = createParams
exports.serverAndSecret = serverAndSecret
exports.joinParams = joinParams