question

ammar15343 avatar image
ammar15343 asked Phong Vu answered

call recording Api

I have used cal recording content API for integration in js


This give me this type of response not a binary data

How to get binary data from API



It's very urgent please give me a fast replay

rest api
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered
Hi Ammar,

It will be very straightforward. E.g. using the Node JS SDK, you can call:

platform.get(contentUri)
        .then(function(res) {
          return res.response().buffer();
        })
        .then(function(buffer) {
          fs.writeFile("contentFile.mp3", buffer, function(){
               console.log("done")
          })
        })
        .catch(function(e){
           console.log(e)
        })
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys