You can try generating an OAuth token
- Go to OAuth 2.0 Playground https://developers.google.com/oauthplayground/
- In the
Select the Scopebox, pastehttps://www.googleapis.com/auth/drive.readonly - Click
Authorize APIsand thenExchange 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