Skip to content

Commit

Permalink
docs: document export as alternative to get (#1677)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored and JustinBeckwith committed Apr 22, 2019
1 parent b50d060 commit 1f7c41a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/drive/download.js
Expand Up @@ -31,6 +31,9 @@ async function runSample(fileId) {
console.log(`writing to ${filePath}`);
const dest = fs.createWriteStream(filePath);
let progress = 0;
// For converting document formats, and for downloading template
// documents, see the method drive.files.export():
// https://developers.google.com/drive/api/v3/manage-downloads
const res = await drive.files.get(
{fileId, alt: 'media'},
{responseType: 'stream'}
Expand Down

0 comments on commit 1f7c41a

Please sign in to comment.