Skip to content

Instantly share code, notes, and snippets.

@SaulBurgos
SaulBurgos / download.js
Created February 11, 2021 01:39 — forked from mkaminsky11/download.js
How to manipulate Google Drive files
/*
Download a file
*/
function downloadFile(fileId) {
var request = gapi.client.drive.files.get({
'fileId': fileId
});
request.execute(function(resp) {
window.location.assign(resp.webContentLink);
});