Download URL is not working

Hello, tommy
I’m going to save stream from zoom download link and to upload it to aws s3 in node.js.
but I am getting error when I try to get file from download link

const download_url = meeting.recording_files[0].download_url + ‘?access_token=’ + zoomAccessToken;

request({

headers: {

  'Authorization': 'Bearer ' + zoomAccessToken,

  'Content-Type': 'application/json'

},

uri: download_url,

method: 'GET'

}, function (err, response, body) {

if (err) {

  return res.status(500).send({ error: true, errorObj: err });

} else {

  res.status(200).send({ daba: body, error: false });

}

})

zoomAccessToken is a token I got it from Oauth.
It gives following error.
{“status”:false,“errorCode”:401,“errorMessage”:“Forbidden”}
Looking forward to hearing from you.
Thank you.

Hi @zeeshanahmed,

Please try removing your authorization bearer header, and only use the ?access_token= method of authentication by appending the token to the download_url.

Let me know if this helps—thanks!
Will