|
1 | 1 | # :tada: Best BigBlueButton API for PHP |
2 | 2 |
|
3 | 3 | The unofficial and easiest to use **BigBlueButton API for PHP**, makes easy for |
4 | | -developers to use [BigBlueButton API] v2.2 for **PHP 7.2+**. |
| 4 | +developers to use [BigBlueButton API] v2.2+ for **PHP 7.2+**. |
5 | 5 |
|
6 | 6 |  |
7 | 7 | [](https://coveralls.io/github/littleredbutton/bigbluebutton-api-php?branch=master) |
8 | | - |
| 8 | + |
9 | 9 | <!-- [](https://scrutinizer-ci.com/g/littleredbutton/bigbluebutton-api-php/?branch=master) --> |
10 | 10 |
|
11 | 11 | **This API uses BigBlueButton and is not endorsed or certified by BigBlueButton |
@@ -91,6 +91,8 @@ $bbb = new BigBlueButton($apiUrl, $apiSecret); |
91 | 91 |
|
92 | 92 | If you didn't use composer before, make sure that you include `vendor/autoload.php`. |
93 | 93 |
|
| 94 | +In general the usage is closly related to the official [API description](https://docs.bigbluebutton.org/dev/api.html). This means to create a room, you have to create a `CreateMeetingParameters` object and set all required parameters via the related setter method. This means to set the `attendeePW`, you have to call `setAttendeePW` and so on. |
| 95 | + |
94 | 96 | #### Test if API url and secret are valid |
95 | 97 | ```php |
96 | 98 | use BigBlueButton\Parameters\IsMeetingRunningParameters; |
@@ -126,8 +128,8 @@ $version = $bbb->getApiVersion()->getVersion(); |
126 | 128 | use BigBlueButton\Parameters\CreateMeetingParameters; |
127 | 129 |
|
128 | 130 | $createMeetingParams = new CreateMeetingParameters($meetingID, $meetingName); |
129 | | -$createMeetingParams->setAttendeePassword($attendee_password); |
130 | | -$createMeetingParams->setModeratorPassword($moderator_password); |
| 131 | +$createMeetingParams->setAttendeePW($attendee_password); |
| 132 | +$createMeetingParams->setModeratorPW($moderator_password); |
131 | 133 |
|
132 | 134 | $createMeetingResponse = $bbb->createMeeting($createMeetingParams); |
133 | 135 |
|
@@ -157,7 +159,7 @@ $createMeetingParams->setGuestPolicyAlwaysAcceptAuth(); |
157 | 159 | use BigBlueButton\Parameters\JoinMeetingParameters; |
158 | 160 |
|
159 | 161 | $joinMeetingParams = new JoinMeetingParameters($room->uid, $displayname, $password); |
160 | | -$joinMeetingParams->setCreationTime($createMeetingResponse->getCreationTime()); |
| 162 | +$joinMeetingParams->setCreateTime($createMeetingResponse->getCreationTime()); |
161 | 163 | $joinMeetingParams->setJoinViaHtml5(true); |
162 | 164 | $joinMeetingParams->setRedirect(true); |
163 | 165 |
|
@@ -253,7 +255,7 @@ if ($response->failed()) { |
253 | 255 | use BigBlueButton\Parameters\GetRecordingsParameters; |
254 | 256 |
|
255 | 257 | $recordingParams = new GetRecordingsParameters(); |
256 | | -$recordingParams->setRecordId($recordId); // omit to get a list of all recordings |
| 258 | +$recordingParams->setRecordID($recordId); // omit to get a list of all recordings |
257 | 259 | $recordingParams->setState('any'); |
258 | 260 |
|
259 | 261 | $response = $bbb->getRecordings($recordingParams); |
@@ -496,7 +498,7 @@ The integration requires additional setup as there are using a real BigBlueButto |
496 | 498 | You need to create a `.env.local` file to configure which server to use and the proper credentials: |
497 | 499 |
|
498 | 500 | ```shell |
499 | | -echo "BBB_SERVER_BASE_URL=https://bbb.example/bigbluebutton/" > env.local |
| 501 | +echo "BBB_SERVER_BASE_URL=https://bbb.example/bigbluebutton/" > .env.local |
500 | 502 | echo "BBB_SECRET=S3cr3t" >> .env.local |
501 | 503 | ``` |
502 | 504 |
|
|
0 commit comments