i want to integrate Zoom call API so users can talk with each other but i don’t want to create host my self so if user created the call the user should be the host
`public function createMeeting($data)
{
$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);
}
}`
if you are familier with fiverr calls i need same