Hello, I am attempting to update to the OAuth from the JWT and ran into a problem. I have created a server-to-server-oauth app and have the keys. I can retrieve a token but when I try to use the token, it returns the error, “This API does not support client credentials for authorization.”
From what I can find in the forums, I need to change the grant type from “client_credentials” to “account_credentials”. However, that returns “invalid request”
This is in PHP, and I am using the package “league/oauth2-client” to get the token.
I am attempting to salvage the existing code base which uses Guzzle, and get a token and attach that to the Guzzle requests.
The code is rather simple,
$provider = new \League\OAuth2\Client\Provider\GenericProvider(
[
‘clientId’ => ‘…’, // The client ID assigned to you by the provider
‘clientSecret’ => ‘…’, // The client password assigned to you by the provider
‘redirectUri’ => ‘’,
‘urlAccessToken’ => ‘https://zoom.us/oauth/token’,
]);
$accessToken = $provider->getAccessToken('client_credentials');
This does work as I do receive a token, but I can’t seem to access the endpoints with it.
An example endpoint, users/[email]/webinars, to just receive a list of webinars.
Am I missing something?