Skip to content
Advertisement

Zoom API – Request to check email does not work

I am trying to consume Zoom’s API using PHP and Oauth2. I was able to connect to the aplication and get the token using the generic lib oauth2-client. But, when I try to make a simple request, I get an error, saying that the email is missing. This is my code:

JavaScript

As you can see, I am passing the email on the request. But I am getting the Fatal error: Uncaught GuzzleHttpExceptionClientException: Client error: GET https://api.zoom.us/v2/users/email resulted in a 400 Bad Request response: {“code”:300,”message”:”Email is required.”}

Can anyone help me?

Advertisement

Answer

You are using

JavaScript

which is not allowed in the function $provider->getAuthenticatedRequest

You need to pass it with the existing URL:

JavaScript

I hope this helps..!!

Zoom API Reference: https://marketplace.zoom.us/docs/api-reference/zoom-api/users/useremail

OAuth Reference: https://github.com/thephpleague/oauth2-client

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement