Scopes

public final class Scopes


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 final String
APP_STATE = "https://www.googleapis.com/auth/appstate"

Scope for using the App State service.

static final String
CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile"

Scope for using the CloudSave service.

static final String
DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

static final String
DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"

Scope for access user-authorized files from Google Drive.

static final String
EMAIL = "email"

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

static final String
GAMES = "https://www.googleapis.com/auth/games"

Scope for accessing data from Google Play Games.

static final String
PLUS_LOGIN = "https://www.googleapis.com/auth/plus.login"

This field is deprecated.

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

static final String
PLUS_ME = "https://www.googleapis.com/auth/plus.me"

This scope was previously named PLUS_PROFILE.

static final String
PROFILE = "profile"

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

Constants

APP_STATE

public static final String APP_STATE = "https://www.googleapis.com/auth/appstate"

Scope for using the App State service.

CLOUD_SAVE

public static final String CLOUD_SAVE = "https://www.googleapis.com/auth/datastoremobile"

Scope for using the CloudSave service.

DRIVE_APPFOLDER

public static final String DRIVE_APPFOLDER = "https://www.googleapis.com/auth/drive.appdata"

Scope for accessing appfolder files from Google Drive.

DRIVE_FILE

public static final String DRIVE_FILE = "https://www.googleapis.com/auth/drive.file"

Scope for access user-authorized files from Google Drive.

EMAIL

public static final String EMAIL = "email"

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

GAMES

public static final String GAMES = "https://www.googleapis.com/auth/games"

Scope for accessing data from Google Play Games.

PLUS_LOGIN

public static final String PLUS_LOGIN = "https://www.googleapis.com/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 final String PLUS_ME = "https://www.googleapis.com/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 final String PROFILE = "profile"

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