blindsidenetworks / scalelite

Scalable load balancer for BigBlueButton.
GNU Affero General Public License v3.0
469 stars 247 forks source link

SL-281: Added support for insertDocument #945

Closed farhatahmad closed 1 year ago

farhatahmad commented 1 year ago

fixes #941

Description

Adds support for the insertDocument BigBlueButton Api call: https://docs.bigbluebutton.org/development/api#insertdocument

Testing Steps

Assuming you have a meetingID=random-195645, you can run the following command:

curl -s -X POST "http://localhost:4000/bigbluebutton/api/insertDocument?meetingID=random-195645&checksum=7cf422cc7e509f5ac578617e2d057058ce2f091a" --header "Content-Type: application/xml" --data '<modules>
   <module name="presentation">
        <document current="true" downloadable="true" url="{link to download the presentation}" filename="sample.pdf"/>
        <document removable="false" name="sample.pdf"> 

JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoT3RoZXJfc2FtcGxlKQovUHJvZHVjZXIgKFNraWEvUERGIG0xMDAgR29vZ2xlIERvY3MgUmVuZGVyZXIpPj4KZW5
        </document>
   </module>
</modules>'

Screenshots (if appropriate):