I have created two refresh tokens for me: one for
SCOPE = 'https://www.googleapis.com/auth/drive'
and another
SCOPE = 'https://www.googleapis.com/auth/drive.file'
I'm trying to get information about files (using get method) Some files I can get when using SCOPE drive.files, and some only when using wider scope drive
But I can not figure out what is the reason for that? Files are located in different folders but have one shared root folder.
The Google Docs folder on your desktop can easily be replaced with the new Google Drive folder and is used in exactly the same way to shared files to your online drive. Google Drive has multiple ways to find, sort and view your files unlike the previous Google Documents List which was admittedly limited.
A file that contains text or binary content such as images, videos, and PDFs. A container you can use to organize other types of files on Drive. Folders are files that only contain metadata, and have the MIME type application/vnd. google-apps.
The difference is that 'drive.file' only gives you permission to files that your app has created or the user has explicitly shared with your app, whereas 'drive' gives your app permission to see the all the files in the user's drive.
See
https://developers.google.com/drive/web/scopes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With