Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Access to the whole Drive not allowed #18

@mvysny

Description

@mvysny

I'm trying to use this API to access all files on user's Drive, but it is not possible:

  1. Using Drive.SCOPE_FILE only lists New Folder as a child of the root folder (client.rootFolder)
  2. 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)
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions