You are here

public function MoxtraService::AddUsersToMeeting in Opigno Moxtra 3.x

Same name and namespace in other branches
  1. 8 src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::AddUsersToMeeting()

Add the users to the meeting.

Parameters

int $owner_id: User ID.

int $session_key: Meeting session key.

array $users: List of options for users.

File

src/MoxtraService.php, line 325

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

public function AddUsersToMeeting($owner_id, $session_key, $users) {
  $data = [
    'session_key' => $session_key,
    'users' => $users,
    'message' => $this
      ->t('Please join the Meet'),
  ];
  $url = $this
    ->getAddUsersToMeetingUrl($owner_id);
  return $this->moxtraConnector
    ->request($url, $data);
}