Skip to content
This repository was archived by the owner on Aug 15, 2024. It is now read-only.

Commit 7d188ac

Browse files
Merge pull request #902 from TwilioDevEd/DEVED-5693-fix-download-node-example
DEVED-5693: Fix incorrect example for nodejs getting composition media.
2 parents 6fc1e9f + 9689c01 commit 7d188ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/rest/compositions/get-composition-media-file/get-composition-media-file.3.x.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ client
2727
.then((response) => {
2828
// For example, download the media to a local file
2929
const file = fs.createWriteStream("myFile.mp4");
30-
const r = request(response.data.redirect_to);
30+
const r = request(response.body.redirect_to);
3131
r.on("response", (res) => {
3232
res.pipe(file);
3333
});

0 commit comments

Comments
 (0)