diff --git a/README.md b/README.md new file mode 100644 index 0000000..dfed107 --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# python-bigbluebutton +Python wrapper for BigBlueButton API + +This python script has implementations for all the Bigbluebutton apis. + +SALT = secret key for your bigbluebutton server + +URL = URL for bigbluebutton e.g. "http://www.exammple.com/bigbluebutton/" diff --git a/bbb_api.py b/bbb_api.py index 7dc3c44..725435f 100644 --- a/bbb_api.py +++ b/bbb_api.py @@ -19,11 +19,13 @@ # Initial version works with 0.7 version of the BBB API +#@param SALT -- the security salt of the bigbluebutton server e.g. "8cd8ef52e8e101574e400365b55e11a6" +#@param URL -- the url of the bigbluebutton server e.g. http://test-install.blindsidenetworks.com/bigbluebutton/ + import urllib, urllib2, socket import hashlib, random from xml.dom import minidom -from xml.dom.minidom import Node - +from xml.dom.minidom import Node def bbb_wrap_load_file(url): timeout = 10 @@ -58,8 +60,8 @@ def assign2Dict(xml): #@param meetingID -- the unique meeting identifier used to store the meeting in the bigbluebutton server #@param username -- the display name to be used when the user joins the meeting #@param PW -- the attendee or moderator password of the meeting -#@param SALT -- the security salt of the bigbluebutton server -#@param URL -- the url of the bigbluebutton server +#@param SALT -- the security salt of the bigbluebutton server e.g. "8cd8ef52e8e101574e400365b55e11a6" +#@param URL -- the url of the bigbluebutton server e.g. http://test-install.blindsidenetworks.com/bigbluebutton/ # #@return The url to join the meeting @@ -105,8 +107,9 @@ def createMeetingURL(name, meetingID, attendeePW, moderatorPW, welcome, logoutUR if (welcome and welcome != ''): welcome_parameters = {'welcome': welcome.strip()} welcome_parameters = urllib.urlencode(welcome_parameters) - + welcome_parameters = "&" + welcome_parameters params = parameters + welcome_parameters + # print params return url_create + params + '&checksum=' + hashlib.sha1("create" + params + SALT).hexdigest()