I have been asked to provide usage reports for users/meetings, and I was informed I needed to use the Zoom API to achieve this. Thus far, I followed the steps @ https://github.com/zoom/zoom-oauth-sample-app to build a Zoom sample OAuth application, and I am also following the steps @ https://marketplace.zoom.us/docs/guides/auth/oauth. Within the Zoom Marketplace guide, I am stuck on “Step 2: Request Access Token”. When navigating to my URL (which contains my Redirect URI, as well as the Authorization Code I had just generated in the previous steps, I get the error “Invalid client_id: (4,702)”.
My .env file contains the clientID, clientSecret, and redirectURL (which is he same Redirect URL being used for Zoom).
Since I am not specifying a Client ID within the POST request, I tried manually adding &client_id=<My_Client_ID>, which then prompted me with “response type is necessary. (4,700)”. Since I was not specifying a response type (which I don’t think I can anyhow), I tried adding &response_type=code, which just took me back to the same simple page I see after completing " Step 1: Request User Authorization" from the guide. I do not see any access token information as the guide shows examples of.
I also opened Postman, and input this URL, and get:
“reason”: “Invalid client_id or client_secret”,
I have my Authorization code (Client ID:Client Secret base64 encoded) but I do not know how to specify this within the URL string. Unfortunately, I have extremely limited knowledge into OAuth, and I am likely missing a simple step.
My Redirect URL and Whitelist URL are the same (An Ngrok URL) – Like I said, this will redirect me to the Zoom page and I can sign-in fine, my problems arise AFTER this step.
Which App Type (OAuth / Chatbot / JWT / Webhook)?
- I navigate to my Install URL in a web browser (https://zoom.us/oauth/authorize?response_type=code&client_id=OMITTED&redirect_uri=https://OMITTED.ngrok.io/). After successful login, I am redirected to the Ngrok IO page, with some JSON output of my account – https://OMITTED.ngrok.io/?code=MyAuthorizationCode.
- Within the same browser window, I am trying to request an access token by navigating to ```
https://zoom.us/oauth/token?grant_type=authorization_code&code=MyAuthorizationCode&redirect_uri=https://OMITTED.ngrok.io/, and I am prompted with “Invalid Client_ID” error on a Zoom page.
- As this fails, I then try going into Postman, and have the same problems. If I try to generate an Access Token, I get “Could not complete OAuth 2.0 login. Check Postman Console for more details.”.