Description
I am developing a simple app to create a meeting for an authorized user.
I using OAuth , have create the app and have a valid token with I believe the right credentials [“token_type”]=> string(6) “bearer” [“expires_in”]=> int(3600) [“scope”]=> string(13) “meeting:write” }
Error
{“code”:200,“message”:“Invalid api key or secret.”}
Which App Type (OAuth / Chatbot / JWT / Webhook)?
Knowing the endpoint/s can help us to identify your issue faster. Please link the ones you need help/have a question with.
Which Endpoint/s?
https://api.zoom.us/v2/users/me/meetings
How To Reproduce (If applicable)
Here is my PHP Code not showing the token
function schedule($token)
{
$curl = curl_init();
$post_data = array(
‘topic’ =>“Test Meeting”,
‘type’ => 2,
‘start_time’=>“2020-05-01T10:00:00”,
‘duration’=>“60”,
‘timezone’=>“America/New_York”,
‘password’=>"",
‘agenda’=>"",
‘settings’=>array(
‘host_video’=>true,
‘participant_video’=>true,
‘cn_meeting’=>false,
‘in_meeting’=>false,
‘join_before_host’=>true,
‘mute_upon_entry’=>false,
‘watermark’=>false,
‘use_pmi’=>false,
‘approval_type’=>2,
‘audio’=>“both”,
‘auto_recording’=>“none”,
‘enforce_login’=>"",
‘enforce_login_domains’=>"",
‘alternative_hosts’=>""
)
);
$header = array(“Authorization: Bearer {$token}”, “Content-Type: application/json”);
curl_setopt_array($curl, array(
CURLOPT_URL => “https://api.zoom.us/v2/users/me/meetings”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 1000,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “POST”,
CURLOPT_POSTFIELDS => json_encode($post_data),
CURLOPT_HTTPHEADER => $header
));
$res1 = curl_exec($curl);
echo “
”;
print_r($res1);
}