I just created my unpublished app and i used the client/secret from production not development on app market place. I have the client/secret and redirect url . I test the program as i followed https://artisansweb.net/how-to-create-a-meeting-on-zoom-using-zoom-api-and-php/
its a valid call back so why the issue?
Error?
Invalid redirect: https://2c0f-144-48-37-133.au.ngrok.io/crm_system/zooms/callback (4,700)
public function callback() {
try {
$client = new Client(['base_uri' => 'https://zoom.us']);
$response = $client->request('POST', '/oauth/token', [
"headers" => [
"Authorization" => "Basic ". base64_encode($this->zoomapikey.':'.$this->zoomapisecret)
],
'form_params' => [
"grant_type" => "authorization_code",
"code" => $_GET['code'],
"redirect_uri" => $this->redirectzoom
] ,
]);
$token = json_decode($response->getBody()->getContents(), true);
//debug($token);
//exit;
$result=$this->Zooms->update_access_token(json_encode($token));
}
catch(Exception $e) {
echo $e->getMessage();
}
}