`public function createmeeting ($ data)
{br /> $ accesstoken = $ this-> getAccessToken ($);
Код: Выделить всё
try {
$response = $this->client->request('POST', 'users/me/meetings', [
'headers' => [
'Authorization' => 'Bearer ' . $accessToken,
'Content-Type' => 'application/json',
],
'json' => array_merge($data, [
'agenda' => "xxx Zoom Meeting",
"duration"=> 60,
"approval_type"=> 2,
"contact_name" =>"jhon",
'settings' => [
'join_before_host' => true, // Allow participants to join before the host
'waiting_room' => false, // Disable waiting room if you want participants to join directly
],
]),
]);
return json_decode($response->getBody(), true);
} catch (RequestException $e) {
return json_decode($e->getResponse()->getBody()->getContents(), true);
}
}`
Подробнее здесь: https://stackoverflow.com/questions/797 ... -for-users
Мобильная версия