how to start a meeting

Created on 20 January 2023, almost 2 years ago
Updated 28 January 2023, almost 2 years ago

Problem/Motivation

hi, i am working on a site, where there are different users, so each user will be able to start a zoom meeting, i have created a controller with this code in it:

public function zoomapi(){

$client = \Drupal::service('zoomapi.client');

try {
// Make the POST request to the zoom api.
$response = $client->request('POST', '/users/me/meetings',[],['json' => [
"topic" => "Let's learn Laravel",
"type" => 2,
"schedule_for" => "test@gmail.com",
]]);

return $response;
}
catch (RequestException $e) {
// Zoom api already logs errors, but you could log more.
\Drupal::messenger()->addStatus($e->getMessage());
$response = new RedirectResponse('/');
$response->send();
exit;
}

}

please check my code, let me know how can i correct it

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

💬 Support request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024