Zoom Web SDK 2.3.5 - resulting robotic audio after joining meeting

You can get the zak token via our Get User Token API endpoint. See our help documentation this topic below:

https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/userToken

@wizy-boost,

It looks like the Authorize request may not be set up correctly in Postman. I personally find using the Type OAuth 2 flow on the Authorization tab more seamless. It automates the OAuth 2 Auth and Token request with the click of a button. Here is a screenshot of what the OAuth 2 Setup looks like :

You can also check out this guide for step-by-step instructions on making API requests with Postman.

You may also want to check out our Using Postman to Test Zoom APIs help document :

https://marketplace.zoom.us/docs/guides/guides/postman/using-postman-to-test-zoom-apis

For reference, here is our help documentation OAuth 2 as well :

https://marketplace.zoom.us/docs/guides/auth/oauth#step-1-request-user-authorization

Hi,

I have tried to run the endpoint below from Postman and it was giving me the token as a response but when I was trying to run the API Endpoint using php curl call it was only giving me the response below, please help.
At first I was getting the code by clicking the link below
oauth/authorize?response_type=code&client_id=qmJId9zSeWk2pkJ7IaEOQ&state=US&redirect_uri=https://wizy-boost.com/en/home

The curl call script :
$userId = base64_encode(“qmJId9zSeWk2pkJ7IaEOQ:XkGc7qamQDB0asCGLhyHjyqCoFtMFlJy”);
$post_data = [
‘Code’ => ‘WOnoS71HUx_rl8-DCWFSFWSvX-VJxNlQg’,
‘grant_type’ => ‘authorization_code’,
‘redirect_uri’ => ‘WizyBoost’,
];

    $headers = [
        'Authorization' => 'Basic cW1KSWQ5elNlV2sycGtKN0lhRU9ROlhrR2M3cWFtUURCMGFzQ0dMaHlIanlxQ29GdE1GbEp5',
        'Content-Type'=>'application/x-www-form-urlencode'
    ];
    $url = 'https://zoom.us//oauth/token';
    $ch = curl_init();            

    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_POST, true);

    curl_setopt($ch, CURLOPT_POSTFIELDS,
        "Code=NaC53bKdzu_rl8&grant_type=authorization_code&redirect_uri=https://wizy-boost.com/en/home");


    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    //curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); 
    $response_json = curl_exec($ch);
    curl_close($ch);
    $oauth_token=json_decode($response_json, true);
    return $response_json;

Respone
{“reason”:“Invalid client_id or client_secret”,“error”:“invalid_client”}

Hi,
I have executed the authorisation related API Endpoints from Postman and got the Zak token.
After that when I was trying to use that Zak token from my Angular end then I was getting the error below.Please find the attached.

The Angular code script
const client = ZoomMtgEmbedded.createClient();
let meetingSDKElement = document.getElementById(‘meetingSDKElement’);

          client.init({
            debug: true,
            zoomAppRoot: meetingSDKElement,
            language: 'en-US',
            customize: {
              meetingInfo: ['topic', 'host', 'mn', 'pwd', 'telPwd', 'invite', 'participant', 'dc', 'enctype'],
              toolbar: {
                buttons: [
                  {
                    text: 'Custom Button',
                    className: 'CustomButton',
                    onClick: () => {
                      console.log('custom button');
                    }
                  }
                ]
              }
            }
          }); 

          client.join({
            sdkKey: "eZyNHh7oAcGoBdPBzAjgUvUBKYjqBDJ45IPO",
            signature: this.zoomsignature, // role in SDK Signature needs to be 1
            meetingNumber: this.meetingID,
            password: this.passcode,
            userName: this.tutorName,
            zak: '1S0pLHTzHW-HHmYrRrQeDOIHd3W7iuc5KgQOYnEW2ww.AG.klEO2QK-8dmDwI-lGpMN2CVFZn0FVS-4MQu3Rj8ezSzH2PRyh8dbmBEsD9dOcAHvO6Vi1HDPGeDMWlHOas09vcWeughx3kLJYQiRzadwBE3zusCXspsqb3omhnjbtncjtOE0WYIn6kWd_dNWqKZa_WsHQp3KYb8LGv1s1LfZsYVZB36mY_DVHv27AGsMjthXBk9lhr-bvG5JzmcH_0V5EinaiJWPGW4OXX1uFbVq.UWKdQZ6OuxAcZZJQRMMM7w.ANiRes7rP0dWM_Hu'
          })

@wizy-boost,

Please reference our Angular Sample App for implementation guidance! Linked here you will find an example of the Zoom.Mtg.init and ZoomMtg.join. You may also find the starting a meeting section of our documentation helpful as well:

Start Meeting Link

Thank you for your help. But we wish to go with Component view not Client view. Using Angular and Laravel. We are losing so many business days. Please suggest if you have any document on angular using Component View and Zak Token is coming perfectly via API using CURL from Laravel. Waiting for your response.

@wizy-boost,

The setup for the Client.join is framework agnostic. I’ve linked our Component View help documentation for reference:

Hi @donte.zoom ! I’ve tested audio with SDK 2.4.0 and now this works fine.

@kostiushko.ivan,

All right, thank you for this update! Glad to hear that the audio is working with SDK 2.4.0.

Best Regards,
Donte

Hi @donte.zoom I following this document only. But angular CLI is giving the following error. Please help me out and suggest if any fixation is needed. I am really stuck there.
Uploading: Screenshot from 2022-05-09 19-36-47.png…

@wizy-boost,

The screenshot you upload is not working, can you add it again and share the details of the error you are seeing?

Regards,
Donte

Screenshot from 2022-05-09 19-36-47
Here is the Screenshot I am getting from Angular cli

  • We wish to implement component view using Angular 12 and Laravel 8.5

  • We installed Web SDK 2.4.0

  • We are not getting oauth Token from our system using CURL.But from Browser when using the API endpoint URL.

  • We created the Zak token using Postman and tried to implement that to open the Component view screen after the session in our system when getting the attached error screen.

Please reference our Zoom OAuth Sample app for implementation guidance on getting an OAuth access token in your app.

Also, here is a get Access Token curl snippet for your reference :

curl --location --request POST 'https://zoom.us/oauth/token?grant_type=authorization_code&code=auth code&redirect_uri=https://YOURREDIRECTURL' \
--header 'Authorization: Basic YOUR TOKEN' \
--header 'Cookie: _zm_lang=en-US; _zm_mtk_guid=b2fed383f6f345c78ef07479027467b9;  \
--data-raw ''

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.