You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 22, 2018. It is now read-only.
I'm trying to use this API to access all files on user's Drive, but it is not possible:
Using Drive.SCOPE_FILE only lists New Folder as a child of the root folder (client.rootFolder)
Using just Scope("https://www.googleapis.com/auth/drive.readonly") fails with:
java.lang.IllegalArgumentException: You must request a Drive scope in order to interact with the Drive API.
at com.google.android.gms.common.internal.zzbq.checkArgument(Unknown Source)
at com.google.android.gms.drive.Drive.zza(Unknown Source)
at com.google.android.gms.drive.Drive.getDriveResourceClient(Unknown Source)
Using both scopes: requestScopes(Drive.SCOPE_FILE, Scope("https://www.googleapis.com/auth/drive.readonly")) seems to ignore the latter one and still only lists the New Folder