Good Morning.
First all, If there is an error in my writing, please excuse me but English is not my native language.
I’m a bit new to using the zoom API and am having a hard time executing API calls from the production server.
Locally I have no difficulties and I get a response. But when executing them from the server, yes.
Specifically, the error I receive from CURL is this:
‘Unknown SSL protocol error in connection to api.zoom.us:443’
The code currently is like this:
$token = $this->getToken();
$header = array(
'authorization: Bearer '.$token,
'content-type: application/json'
);
$options = array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => $header
);
$curl = curl_init();
curl_setopt_array($curl, $options);
$response = curl_exec($curl);
$curl_error = curl_error($curl);
curl_close($curl);
if ($curl_error){
$salida['flagerror'] = 1;
$salida['errormsg'] = $curl_error;
} else {
$salida['flagerror'] = 0;
$salida['errormsg'] = '';
}
$salida['response'] = $response;
return $salida;
The endpoint I am trying to call is
https://api.zoom.us/v2/users
The token obtained is fine.
I have consulted in the forums about the error 443 and among the answers they suggest setting the value CURL_SSL_VERSION_SSLv3 in SSLVersion but the result is the same.
I am accessing the API using JWT App that I have previously created in my account following the steps of the QuickStart.
In $salida I save the response I get, and when examining the error it indicates the error I mentioned above.
If it is not too much trouble, I would like to know if you can guide me what could be the problem.
Thanks a lot,
Best regards