Move a Google Drive file to the Bin
Automatically move a Google Drive file to the Bin on drive.google.com. Moves a file to Drive's Bin (never a permanent delete), given just the file's id — its parent folder is resolved automatically.
Input
fileId requiredDrive file id to trash, i.e. the <id> in drive.google.com/file/d/<id>/view.
Output
fileId requiredtrashed requiredFAQ
Upload a file to Google Drive
Upload one file into a Google Drive folder, or into My Drive when no folder is given, and return the stored file's id, name and link. Pass filename to choose the name it is stored under. When the folder already holds a file with that name, ifExists decides: fail (the default) uploads nothing, keepBoth adds a second file with a numbered name, replace adds a new version of the existing file and keeps its id.
List a Google Drive folder
List the files and sub-folders directly inside a Google Drive folder, without recursing or downloading anything. Returns each item's id, name, type, size, dates, owner and link, folders first, one page at a time: pass nextPageToken back as pageToken to read the next page. Omit folderId to list My Drive's root. An empty folder returns empty lists.
Download a Google Drive file
Download one Google Drive file by id, or by a Drive or Docs URL, to the machine running the browser. Files stored as bytes (PDFs, images, video, Office documents) download as they are; Google Docs, Sheets and Slides are exported, so pass format to choose pdf, docx, xlsx, csv and the rest. Returns the file's name and type in Drive and where it was saved. For a whole folder, list it first and call this once per file.
