Skip to content

Instantly share code, notes, and snippets.

@sjdonado
Last active May 15, 2021 19:23
Show Gist options
  • Save sjdonado/9d2a920360f41bcc2223320696972729 to your computer and use it in GitHub Desktop.
Save sjdonado/9d2a920360f41bcc2223320696972729 to your computer and use it in GitHub Desktop.
Download large file from Google Drive

You can try generating an OAuth token

  • Go to OAuth 2.0 Playground https://developers.google.com/oauthplayground/
  • In the Select the Scope box, paste https://www.googleapis.com/auth/drive.readonly
  • Click Authorize APIs and then Exchange authorization code for tokens
  • Copy the Access token
  • Run in terminal
curl -H "Authorization: Bearer ACCESS_TOKEN" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment