Salesforce SDK no longer working after May 10 refresh - status 302Completed
Hi: After getting a developer token, we have been connecting to box to download audio files in to Salesforce. The following piece of code stopped working after May 10 upgrade. I was told to look for lower-case headers in the response. But still no luck. Can you help? Here is my sample code.
string endPointUrl ='https://api.box.com/2.0/files/'+fileId+'/content';
Http h1 =newHttp();
Httprequest req1 =newHttpRequest();
req1.setHeader('authorization', 'Bearer '+accessToken);
String fileLocation, extFileURL;
HttpResponse response =newHttpResponse();
fileLocation=response.getHeader('location'); // I donot get the header back, get status 302
System.debug('File Loction '+fileLocation);
Please sign in to leave a comment.