Download a Google Drive file
Input
fileId requiredDrive file id, or any Drive or Docs URL that contains it.
gid optionalTab id (the gid in the sheet URL), for a csv or tsv export of a Google Sheet. Omit for the first tab.
format optionalExport format for a Google Doc, Sheet or Slides file. Defaults to pdf for documents and presentations, xlsx for spreadsheets. Files stored as bytes download as they are and ignore it.
Output
kind requiredbinary for a file stored as bytes, otherwise the Google type it was exported from.
name requiredThe file's name in Drive.
fileId requiredfilename requiredThe name the file was saved under.
mimeType requiredThe file's type in Drive.
url optionalA link to the bytes, when they are not on the machine running the browser.
path optionalWhere the file was saved on the machine running the browser.
format optionalThe export format used, for a Google Doc, Sheet or Slides file.
formatIgnored optionalTrue when a format was passed for a file stored as bytes, which downloads as it is.
