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?
-
- Customers
- Developers
- Sign in
if (record.recording != undefined) { recordingId = record.recording.id rcsdk.platform().get(record.recording.contentUri) .then(function(res) { return res.response().buffer(); }) .then(function(buffer) { console.log("buffer") fs.writeFileSync(recordingId + '.mp3', buffer); }) .catch(function(e){ throw e })}
2 People are following this question.