Using this template helps us debug your issues more effectively
Description
Good Day,
I programmed our website to work with the zoom oauth api and i used curl in php to make the requests to your api,
the code for creating meeting has worked since about february however when i tried it now it no longer works but i can still get a list of meetings, get a specific meeting and edit a meeting.
This is the code i use to create a meeting
$url = ‘https://api.zoom.us/v2/users/me/meetings’;
$headers = ['Authorization:Bearer ’ . $this->session->userdata[‘zoom_auth’][‘access_token’], ‘Content-Type: application/json’];
$data = $this->curl_requests($url, $headers, ‘CREATES’, $params1);
var_dump($data)
function curl_requests($url, $headers, $method, $params) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, ‘POST’);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
$result = curl_exec($ch);
if (curl_errno($ch)) {
$test = curl_error($ch);
} else {
$test = json_decode($result, true);
if (!$this->is_json($result)) {
$test = $result;
}
}
curl_close($ch);
return $test;
}
Error
My biggest problem is there is no error to signify what i actually did wrong, whenever I var_dump the result it returns null
Which App Type (OAuth / Chatbot / JWT / Webhook)?
I have been using the OAuth
Which Endpoint/s?
Knowing the API endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
How To Reproduce (If applicable)
Steps to reproduce the behavior:
- Request URL / Headers (without credentials) / Body
- See error
Screenshots (If applicable)
Additional context
Add any other context about the problem here.