You are here

public function Api::createMeeting in BigBlueButton 8

Create Meeting (create).

Parameters

\BigBlueButton\Parameters\CreateMeetingParameters $params: Associative array of additional url parameters. Components:

  • name: STRING (REQUIRED) A name for the meeting.
  • meetingID: STRING A meeting ID that can be used to identify this meeting by the third party application. This is optional, and if not supplied, BBB will generate a meeting token that can be used to identify the meeting.
  • attendeePW: STRING The password that will be required for attendees to join the meeting. This is optional, and if not supplied, BBB will assign a random password.
  • moderatorPW: STRING The password that will be required for moderators to join the meeting or for certain administrative actions (i.e. ending a meeting). This is optional, and if not supplied, BBB will assign a random password.
  • welcome: STRING A welcome message that gets displayed on the chat window when the participant joins. You can include keywords (%%CONFNAME%%, %%DIALNUM%%, %%CONFNUM%%) which will be substituted automatically. You can set a default welcome message on bigbluebutton.properties
  • dialNumber: STRING The dial access number that participants can call in using regular phone. You can set a default dial number on bigbluebutton.properties
  • logoutURL: STRING The URL that the BigBlueButton client will go to after users click the OK button on the 'You have been logged out message'. This overrides, the value for bigbluebutton.web.loggedOutUrl if defined in bigbluebutton.properties.

Return value

\BigBlueButton\Responses\CreateMeetingResponse|false

  • meetingToken: STRING The internal meeting token assigned by the API for this meeting. It can be used by subsequent calls for joining or otherwise modifying a meeting's status.
  • meetingID: STRING The meeting ID supplied by the third party app, or null if none was supplied. If can be used in conjunction with a password in subsequent calls for joining or otherwise modifying a meeting's status.
  • attendeePW: STRING The password that will be required for attendees to join the meeting. If you did not supply one, BBB will assign a random password.
  • moderatorPW: STRING The password that will be required for moderators to join the meeting or for certain administrative actions (i.e. ending a meeting). If you did not supply one, BBB will assign a random password.

File

src/Service/Api.php, line 88

Class

Api
Class Api.

Namespace

Drupal\bbb\Service

Code

public function createMeeting(CreateMeetingParameters $params) {
  $response = $this->bbb
    ->createMeeting($params);
  if ($response
    ->getReturnCode() === self::SUCCESS) {
    return $response;
  }
  else {
    return FALSE;
  }
}