From 1f7c41abd31487617e1692a730c0c979ab44880b Mon Sep 17 00:00:00 2001 From: "Benjamin E. Coe" Date: Mon, 22 Apr 2019 13:31:17 -0700 Subject: [PATCH] docs: document export as alternative to get (#1677) --- samples/drive/download.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/samples/drive/download.js b/samples/drive/download.js index 95b06b97645..a2f9b085527 100644 --- a/samples/drive/download.js +++ b/samples/drive/download.js @@ -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'}