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 has been 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
The text was updated successfully, but these errors were encountered:
Passing the scope of https://www.googleapis.com/auth/drive (the full access rights) fails with an exception:
E/ClientConnectOperation: Handling authorization failure
nzh: Authorization failed: Unsupported scope: https://www.googleapis.com/auth/drive
at nzl.a(:com.google.android.gms@11951448:25)
at nvy.<init>(:com.google.android.gms@11951448:26)
at nxh.a(:com.google.android.gms@11951448:72)
at swi.run(:com.google.android.gms@11951448:11)
at mvc.run(:com.google.android.gms@11951448:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at nak.run(:com.google.android.gms@11951448)
at java.lang.Thread.run(Thread.java:761)
Is there a way to access all files in user's Google Drive with this API?
I'm trying to use this API to access all files on user's Drive, but it is not possible:
Drive.SCOPE_FILE
only listsNew Folder
as a child of the root folder (client.rootFolder
)Scope("https://www.googleapis.com/auth/drive.readonly")
fails with:requestScopes(Drive.SCOPE_FILE, Scope("https://www.googleapis.com/auth/drive.readonly"))
seems to ignore the latter one and still only lists theNew Folder
The text was updated successfully, but these errors were encountered: