public function MoxtraService::updateMeeting in Opigno Moxtra 8
Same name and namespace in other branches
- 3.x src/MoxtraService.php \Drupal\opigno_moxtra\MoxtraService::updateMeeting()
Updates meeting.
Parameters
int $owner_id: User ID.
string $session_key: Session key of the meeting.
string $title: New title of the meeting.
int $starts: New start date timestamp of the meeting.
int|null $ends: New end date timestamp of the meeting.
Return value
array Response data.
Overrides MoxtraServiceInterface::updateMeeting
File
- src/
MoxtraService.php, line 509
Class
- MoxtraService
- Implements Moxtra REST API.
Namespace
Drupal\opigno_moxtraCode
public function updateMeeting($owner_id, $session_key, $title, $starts, $ends = NULL) {
$data = [
'name' => $title,
'starts' => $starts,
'auto_recording' => TRUE,
];
if (isset($ends)) {
$data['ends'] = $ends;
}
$url = $this
->getUpdateMeetingUrl($owner_id, $session_key);
return $this->moxtraConnector
->request($url, $data);
}