From 5c96ee53bdff29a8916f63b98b7ebe0606b1f0ff Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Sun, 26 Jun 2016 19:12:37 +0530 Subject: [PATCH 1/5] comments added --- bbb_api.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/bbb_api.py b/bbb_api.py index 7dc3c44..e23f2ee 100644 --- a/bbb_api.py +++ b/bbb_api.py @@ -18,12 +18,10 @@ # 0.1 -- written by Omar Shammas (email : omar DOT shammas [a t ] g m ail DOT com) # Initial version works with 0.7 version of the BBB API - 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 +56,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 From a3e784699bb89f9e112435af5c3038f5282efb0a Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Sun, 26 Jun 2016 19:13:05 +0530 Subject: [PATCH 2/5] comments added --- bbb_api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bbb_api.py b/bbb_api.py index e23f2ee..046d2bb 100644 --- a/bbb_api.py +++ b/bbb_api.py @@ -18,6 +18,10 @@ # 0.1 -- written by Omar Shammas (email : omar DOT shammas [a t ] g m ail DOT com) # 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 cb989d1b02cc9c8490a81be212dd0d281dd6a3ac Mon Sep 17 00:00:00 2001 From: mayankgrwl97 Date: Sun, 26 Jun 2016 19:16:26 +0530 Subject: [PATCH 3/5] Create README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8341130 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# python-bigbluebutton +Python wrapper for BigBlueButton API + +This python file 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/" From 1034ace0194be98186c1b9d8075fa6eb05e086d6 Mon Sep 17 00:00:00 2001 From: mayankgrwl97 Date: Sun, 26 Jun 2016 19:17:34 +0530 Subject: [PATCH 4/5] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8341130..dfed107 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # python-bigbluebutton Python wrapper for BigBlueButton API -This python file has implementations for all the Bigbluebutton apis. +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/" From 185cfb386f52dd16ef4f2f2debe153011d4cff43 Mon Sep 17 00:00:00 2001 From: Mayank Agarwal Date: Sun, 26 Jun 2016 19:50:32 +0530 Subject: [PATCH 5/5] createURL updated --- bbb_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bbb_api.py b/bbb_api.py index 046d2bb..725435f 100644 --- a/bbb_api.py +++ b/bbb_api.py @@ -107,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()