We are trying to access the audio files of Zoom meetings via the API. Specifically, calling the endpoint from within a Salesforce trigger so we can then upload the file to a Salesforce File. When accessing the URL I get in my code through a broswer/postman I am getting valid 200 responses, but when trying via the Apex Trigger I get the below error:
The payload I get back is the “Please enter passcode” redirect page.
How To Reproduce Steps to reproduce the behavior:
Trigger callout from SFDC record save
Successfully get Oauth token and recording download URL
Attempt to get response from DownloadURL and receive 302 error.
After I posted this, I discovered that the 302 Response is expected behavior for this use-case and that I needed to tell my code to follow the redirect/downloadURL. When adding this logic in, it worked as expected. Hope this helps anyone else in my situation.