Hi,
I’m trying to migrate our PHP Curl code to a server-to-server OAuth zoom app.
I’m able to get an access token but once I want to get infos about a meeting I got this message:
code":200,“message”:“Account does not enabled REST API.”
Same message if I use postman.
Here is an example of my PHP Code to get a meeting:
$webinar_zoom_id = str_replace(' ', '', $webinar_zoom_id);
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => https://api.zoom.us/v2/meetings/.$webinar_zoom_id,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"Authorization: Bearer ".$tokenV2."",
"cache-control: no-cache"
),
));
$response = curl_exec($curl);
//var_dump($response);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
$responseDecode = json_decode($response);
}
Could you help me to solve this issue please ?
Thanks a lot for your help.