Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit 70ba42c

Browse files
committed
changes in review
1 parent aa82fb8 commit 70ba42c

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

_posts/2.5/2021-06-09-new.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -67,39 +67,7 @@ Private guest lobby message, display position in waiting line
6767

6868
A new API endpoint was added: `/insertDocument`. Now, it is possible to send a batch of documents with all the common presentation parameters such as `current`, `downloadable` and `removable`.
6969

70-
All the presentations are sent via payload (the body of the request) such as when preuploading documents in `/create` endpoint, whether by a link to download the file or by `base64` encoded file.
71-
72-
You can send the request via greenlight or bash, as displayed below:
73-
74-
``` bash
75-
curl -s -X POST "https://{your-host}/bigbluebutton/api/insertDocument?meetingID=Test&checksum=6b76e90b9a20481806a7ef513bc81ef0299609ed" --header "Content-Type: application/xml" --data '<modules>
76-
<module name="presentation">
77-
<document current="true" downloadable="true" url="{link to download the presentation}" filename="sample.pdf"/>
78-
<document removable="false" name="sample.pdf">
79-
JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoT3RoZXJfc2FtcGxlKQovUHJvZHVjZXIgKFNraWEvUERGIG0xMDAgR29vZ2xlIERvY3MgUmVuZGVyZXIpPj4KZW5... {base64 encoded document}
80-
</document>
81-
</module>
82-
</modules>'
83-
```
84-
85-
More explicitly, in xml we have:
86-
87-
``` xml
88-
<modules>
89-
<module name="presentation">
90-
<document current="true" downloadable="true" url="{link to download the presentation}" filename="sample.pdf"/>
91-
<document removable="false" name="sample.pdf">
92-
JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9UaXRsZSAoT3RoZXJfc2FtcGxlKQovUHJvZHVjZXIgKFNraWEvUERGIG0xMDAgR29vZ2xlIERvY3MgUmVuZGVyZXIpPj4KZW5... {base64 encoded document}
93-
</document>
94-
</module>
95-
</modules>
96-
```
97-
98-
Now just the request:
99-
100-
``` bash
101-
curl -s -X POST "https://{your-host}/bigbluebutton/api/insertDocument?meetingID=Test&checksum=6b76e90b9a20481806a7ef513bc81ef0299609ed" --header "Content-Type: application/xml" --data '{xml}'
102-
```
70+
All the presentations are sent via payload (the body of the request) such as when preuploading documents in `/create` endpoint, whether by a link to download the file or by `base64` encoded file. See the [API documentation](../dev/api.html#insertdocument) for more information
10371

10472
## Engagement
10573

_posts/dev/2015-04-05-api.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,7 @@ Updated in 2.5:
8080

8181
- **create** - **Added:** `meetingCameraCap`, `groups`, `disabledFeatures`, `meetingExpireIfNoUserJoinedInMinutes`, `meetingExpireWhenLastUserLeftInMinutes`; **Deprecated:** `learningDashboardEnabled`, `breakoutRoomsEnabled`, `virtualBackgroundsDisabled`.
8282

83-
- **insertDocument**
84-
- New endpoint created;
85-
- It is responsible to insert a presentation in a meeting that already exists;
86-
- It works the same way as preuploading documents in `/create` endpoint: the requests are sent with a payload expliciting the presentations in a xml string. As an example refer to the [notes in "new" route.](#insertdocument)
83+
- **insertDocument** endopoint was first introduced
8784

8885
# API Data Types
8986

0 commit comments

Comments
 (0)