Scopes

public final classScopes

OAuth 2.0 scopes for use with Google Play services. See the specific client methods for details on which scopes are required.

Summary

Constants

static finalString
APP_STATE= "https:// googleapis /auth/appstate"

Scope for using the App State service.

static finalString
CLOUD_SAVE= "https:// googleapis /auth/datastoremobile"

Scope for using the CloudSave service.

static finalString
DRIVE_APPFOLDER= "https:// googleapis /auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

static finalString
DRIVE_FILE= "https:// googleapis /auth/drive.file"

Scope for access user-authorized files from Google Drive.

static finalString
EMAIL= "email"

OAuth 2.0 scope for accessing user's Google account email address.

static finalString
GAMES= "https:// googleapis /auth/games"

Scope for accessing data from Google Play Games.

static finalString
PLUS_LOGIN= "https:// googleapis /auth/plus.login"

This field is deprecated.

We recommend switching toPROFILEscope to get the one-tap sign-in experience.

static finalString
PLUS_ME= "https:// googleapis /auth/plus.me"

This scope was previously named PLUS_PROFILE.

static finalString
PROFILE= "profile"

OAuth 2.0 scope for viewing a user's basic profile information.

Constants

APP_STATE

public static finalStringAPP_STATE= "https:// googleapis /auth/appstate"

Scope for using the App State service.

CLOUD_SAVE

public static finalStringCLOUD_SAVE= "https:// googleapis /auth/datastoremobile"

Scope for using the CloudSave service.

DRIVE_APPFOLDER

public static finalStringDRIVE_APPFOLDER= "https:// googleapis /auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

DRIVE_FILE

public static finalStringDRIVE_FILE= "https:// googleapis /auth/drive.file"

Scope for access user-authorized files from Google Drive.

EMAIL

public static finalStringEMAIL= "email"

OAuth 2.0 scope for accessing user's Google account email address.

GAMES

public static finalStringGAMES= "https:// googleapis /auth/games"

Scope for accessing data from Google Play Games.

PLUS_LOGIN

public static finalStringPLUS_LOGIN= "https:// googleapis /auth/plus.login"

OAuth 2.0 scope for accessing the user's name, basic profile info and Google+ profile info.

When using this scope, your app will have access to:

  • the user's full name, profile picture, Google+ profile ID, age range, and language
  • any other publicly available information on the user's Google+ profile

PLUS_ME

public static finalStringPLUS_ME= "https:// googleapis /auth/plus.me"

This scope was previously named PLUS_PROFILE.

When using this scope, it does the following:

  • It lets you know who the currently authenticated user is by letting you replace a Google+ user ID with "me", which represents the authenticated user, in any call to the Google+ API.

PROFILE

public static finalStringPROFILE= "profile"

OAuth 2.0 scope for viewing a user's basic profile information.