I'm trying to download a file from Box.com through API using the following code.
<cfhttp url="https://api.box.com/2.0/files/(FILE_ID)/content/" method="GET" redirect="true" >
<cfhttpparam type="header" name="Authorization" value="Bearer (DEVELOPER_TOKEN)">
</cfhttp>
As per documentation it should return 302 Found
as response. And redirects to dl.boxcloud.com for download. But I'm getting 200
as response.
Not sure why I'm getting 200 as response. I need to download the file through the API call. Did I missed anything?