Skip to main content
Question

Is there a simple Node.js code sample for downloading call recordings?

  • November 15, 2017
  • 2 replies
  • 1300 views

I'm using node.js to pull down call logs. Now I would like to download call recordings. Is there a simple JavaScript code sample for me to start from?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • November 15, 2017

  • Author
  • New Participant
  • November 15, 2017
Thanks Phong Vu. That gives me a good start.
When I log in, then run:

rcsdk.platform().get('/restapi/v1.0/account/~/recording/<recording id here>').then(function(res) {
    return res.response().buffer(); // we are accessing Node Fetch's Response
}).then(function(buffer) {
 
}

I get the error:

"body used already for: https://platform.ringcentral.com/restapi/v1.0/account/~/recording/<recording id>"


When I put in an invalid recording id it tells me that callRecordingId is not found, but when I put a valid id in it gives me the above error

Is my get not structured properly?