Hi, I have been trying to get oauth access token from a server with PHP but I always get 403 error.
I saw other similar post but they seem to have been resolved by private message or using
This is my test code:
$url = 'https://zoom.us/oauth/token?grant_type=authorization_code&code=u6NUmBQkQV_KQicgZepTombV7amtbobPQ'; $auth = base64_encode($this->zoom_client_id . ':' . $this->zoom_client_secret); $context = stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => "Authorization: Basic $auth\r\nContent-Type: application/json\r\n", ] ]); echo file_get_contents($url, false, $context);