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

Commit 9689c01

Browse files
author
Sarah Stringer
committed
Fix incorrect example for nodejs getting composition media.
1 parent 6fc1e9f commit 9689c01

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)