Are Google Drive areas outdated?

I am writing an application that will play media directly from Google Drive.

Google docs mention

https://www.googleapis.com/auth/drive.readonly

scope (see here https://developers.google.com/drive/web/scopes ) which seems to fit me exactly. However, it seems that the Android API only supports the two areas mentioned there:

Drive.SCOPE_FILE Drive.SCOPE_APPFOLDER

so I tried several non-standard areas, for example:

    mGoogleApiClient = new GoogleApiClient.Builder(XenoAmp.getContext())
            .addApi(Drive.API)
            //.addApi(DriveScopes.)
            //.addScope(Drive.SCOPE_APPFOLDER)
            .addScope(Drive.SCOPE_FILE)
            .addScope(new Scope("https://www.googleapis.com/auth/drive"))
            //.addScope(new Scope("https://www.googleapis.com/auth/drive.readonly"))
            //.addScope(new Scope("https://www.googleapis.com/auth/drive.metadata.readonly"))
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this).build();

But my logarithm complains:

03-29 12: 53: 58.935: E / ClientConnectionOperation (9953): com.google.android.gms.drive.auth.c: Authorization error: Unsupported area: https://www.googleapis.com/auth/drive

- ? Goodle Drive?

+4
1

, DRIVE GDAA. , REST API. GDAA "" API, API. . .

0

All Articles