Skip to content

Instantly share code, notes, and snippets.

@amry666
amry666 / download.js
Created April 18, 2019 19:27 — 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);
});