Create meeting API returning blank response with 200 ok

Description -
I am trying to create a meeting using Zoom API using JWT bearer token in PHP cURL. But I am receiving blank response with 200 ok or success.

Error -
Getting blank response.

App Type -
JWT

Endpoint -
/v2/users/{userId}/meetings

Sample Code -

<?php  
  $curl = curl_init();
  
  curl_setopt_array($curl, array(
    CURLOPT_URL => "https://api.zoom.us/v2/users/fScWFGYqS2igAJilSapGcg/meetings",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_ENCODING => "",
    CURLOPT_MAXREDIRS => 10,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_POSTFIELDS => "{\"topic\" => \"Let's learn Laravel\", \"type\" => 2, \"start_time\" => \"2022-01-23T20:30:00\", \"duration\" => \"30\", \"password\" => \"123456\"}",
    CURLOPT_HTTPHEADER => array(
      "authorization: Bearer ",
      "content-type: application/json"
    ),
  ));
  
  $response = curl_exec($curl);
  $err = curl_error($curl);
  
  curl_close($curl);
  
  if ($err) {
    echo "cURL Error #:" . $err;
  } else {
    echo "<pre>Response - ";print_r(json_decode($response));
  }

Hi @keri.anderson97

Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!
Have you tried passing the word “me” instead of the userId and test it?

Best,
Elisa

Hi @elisa.zoom

Yes I have tried using “me” in place of userId but it still returned blank response with 200 ok.

Hi @keri.anderson97

Could you please send me the sample code that you shared with me via email (including the Bearer token with I edited and deleted for security reasons from your last post) and including a link to this thread to developersupport@zoom.us

I will be debugging this issue further
Best,
Elisa

Thanks @keri.anderson97

Hi Elisa,

Still waiting for your response on this.

Greetings, @keri.anderson97,

Your script looks correct. One thing I noticed is it looks like the Bearer token is missing:

Screen Shot 2022-01-27 at 8.47.04 PM

You can compare your script against this example here :

Additionally, be sure to check 50+ results for curl PHP search results to see if answers may already be available.

I hope this helps.

Best,
Donte

1 Like

Hi @keri.anderson97

Adding to what my colleague @donte.zoom shared with you. I want to say that I heard back from engineering and there was a fail on this endpoint around January 13. Could you please try making the request again to make that this is not happening anymore?

Thanks
Elisa

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