0

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

5
  • Anything not working with the given code? Also, this is tagged with vue.js - so do you need to share any related JS code? Commented Jul 14 at 13:01
  • How are you integrating with Zoom for authentication? When I, as a user of your application, try to access it, do I go through an SSO where I grant you a token to act on my behalf to create a meeting? Or are you doing this only with server-side tokens/keys? I'm seeing the me, so it seems the former, but I'm just checking Commented Jul 14 at 14:33
  • thanks for your comment basically this code is working perfectly fine only issue with this code is if 1 pair is talking then same time btw this time one more pair want to talk it will show host is busy Commented Jul 16 at 7:31
  • i am making request for zoom token zoom.us/oauth/token Commented Jul 16 at 7:31
  • Please add all clarification to your question by editing it Commented Jul 16 at 7:33

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.