Hi,
I am trying to store zoom meeting transcript in salesforce using webhook. i have configured eveything and gettng response in salesforce but ass soon as i am trying to make an api callout to download the script using ‘download_url’ as an endpoint and ‘download_token’ for Authorization so it is giving me 302 error while it is working fine in postman. can anyone please help me to get rid of this error.
i have also tried below redirect/downloadURL approach:
redirect/downloadURL approach : Calling Download URL from Salesforce Trigger results in 302 Error
below is the example apex code that i am using to make callout
HttpRequest req1 = new HttpRequest();
req1.setEndpoint(‘Passcode Required - Zoom’);
req1.setMethod(‘GET’);
req1.setHeader(‘Authorization’, ‘Bearer eyJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsInR5cCI6IkpXVCIsImFsZyI6IkVTMjU2In0.eyJhdWQiOiJXZWJSZWNEb3dubG9hZCIsImFjY291bnRJZCI6InM0blVVNUtKUXdTNTZJZHJFczVZQ0EiLCJpc3MiOiJFdmVudENvbnN1bWVyUmVjRG93bmxvYWQiLCJtaWQiOiI2ZHBKQnlPU1RDYTZaczE3WXBFUHd3PT0iLCJleHAiOjE3MjU2MDQ5NzQsImlhdCI6MTcyNTUxODU3NCwidXNlcklkIjoiVjc3WXpaRDRTMWk5X1ZOcjJHOUtGZyJ9.zgYfrbCCWuNBMARuP6cWo6pH7zY1xa3ocVKU1oAAj8W_LThZQOaS2Kj7UDMVXQ39ZfT7ngbkGyvDIR_9-JGBlQ’);
Http http1 = new Http();
HttpResponse res1 = http1.send(req1);
System.debug('Status Code: ’ + res1.getStatusCode());
if (res1.getStatusCode() == 200) {
Blob fileContent = res1.getBodyAsBlob();
String textData = fileContent.toString();
system.debug(fileContent);
System.debug(textData);
}
Thanks