You are here

public function MoxtraService::createMeeting in Opigno Moxtra 8

Same name and namespace in other branches
  1. 3.x src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::createMeeting()

Creates meeting.

Parameters

int $owner_id: User ID.

string $title: New title of the meeting.

int $starts: New start date timestamp of the meeting.

int $ends: New end date timestamp of the meeting.

Return value

array Response data.

Overrides MoxtraServiceInterface::createMeeting

File

src/MoxtraService.php, line 494

Class

MoxtraService
Implements Moxtra REST API.

Namespace

Drupal\opigno_moxtra

Code

public function createMeeting($owner_id, $title, $starts, $ends) {
  $data = [
    'name' => $title,
    'starts' => $starts,
    'ends' => $ends,
    'auto_recording' => TRUE,
  ];
  $url = $this
    ->getCreateMeetingUrl($owner_id);
  return $this->moxtraConnector
    ->request($url, $data);
}