Skip to content

Instantly share code, notes, and snippets.

@mtpython
Created November 16, 2022 12:29
Show Gist options
  • Save mtpython/49bd70638cae2a185d242a7543294cc6 to your computer and use it in GitHub Desktop.
Save mtpython/49bd70638cae2a185d242a7543294cc6 to your computer and use it in GitHub Desktop.
g-drive curl
  1. g-drive: Get Link, get FILEID
  2. OAuth2 Playground
  3. "Drive API v3" — https://www.googleapis.com/auth/drive.readonly
  4. "Authorize APIs", "Exchange authorization code for tokens", get "Access Token" (TOKEN)
curl -C - -H "Authorization: Bearer TOKEN" https://www.googleapis.com/drive/v3/files/FILEID?alt=media -o FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment