Question

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

  • 15 November 2017
  • 2 replies
  • 1230 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

Userlevel 1
Hi Don,

Check this out https://github.com/ringcentral/ringcentral-js#binary-downloads

+ Phong

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?

Reply