A list of Google+ authorization areas is here: https://developers.google.com/+/api/oauth . Fine ...
In the QuickStart example for the Android client, the code to get the GoogleApiClient instance looks like the one below, but with the "Plus.SCOPE_PLUS_LOGIN" area. But I want to have an "email" area. I can not find the constant for the "email" area.
private GoogleApiClient buildGoogleApiClient() {
return new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this)
.addApi(Plus.API, Plus.PlusOptions.builder().build())
.addScope(Plus.SCOPE_PLUS_LOGIN)
.build();
}
Do I need to create an instance of Scope? For instance:
Scope emailScope = new Scope("email");
source
share