Hi Team
I am using zoom for the first time for integration and need the authorization code as a response of below endpoint.
Endpoint I am hitting : “https://zoom.us/oauth/authorize?response_type=code&redirect_uri=https://login.salesforce.com&client_id=Removed”
In response I get : “System.HttpResponse[Status=Found, StatusCode=302]”
There is no authorization code returned in the response so how do we get it for backend APIs?
Note: If I paste the above endpoint in the browser, I get redirected to the redirect uri with the authorization code in the URL but I need it in the backend as a response of above end point.
Code:
Http h = new Http();
HttpRequest req = new HttpRequest();
req.setMethod(‘POST’);
req.setEndpoint(‘https://zoom.us/oauth/authorize?response_type=code&redirect_uri=https://login.salesforce.com&client_id=Removed’);
HttpResponse hresp = h.send(req);
System.debug(‘hresp2’+hresp);