问题
Currently we only have the scope https://www.googleapis.com/auth/drive.readonly but we want to be able to write and update files to google drive as well. Reading the documentation they state that https://www.googleapis.com/auth/drive.file is enough to create and update files. But before we apply to this I want to make sure this scope is enough.
回答1:
As written in the Documentation https://www.googleapis.com/auth/drive.file
will only allow you access to files created or opened by the app(you).
https://www.googleapis.com/auth/drive
allows you to access all of a user's files, excluding the Application Data folder.
So if you want to access all the user files https://www.googleapis.com/auth/drive
else https://www.googleapis.com/auth/drive.file
is enough to create and update the files.
来源:https://stackoverflow.com/questions/56344368/is-the-https-www-googleapis-com-auth-drive-file-enough-to-create-and-update-fi