Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/"
13 changes: 8 additions & 5 deletions bbb_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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()


Expand Down