Always getting {“code”:124,“message”:“Invalid access token.”} at the time of deleting a meeting from JWT.
$request_url = ‘https://api.zoom.us/v2/meetings/’.$meeting_id;
$headers = array(
“authorization:Bearer {$token}”,
‘content-type: application/json’
);
$postFields = array();
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “DELETE”);
$result = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
$err = curl_error($ch);
curl_close($ch); print_r($response);
if(!$response){
return $err;
}
return json_decode($response);