I am using the Google API to enter the Android app.
The code is here:
SignInButton btnLogin = (SignInButton) findViewById(R.id.sign_in_button); btnLogin.setOnClickListener(this); Scope[] scopes = new Scope[2]; scopes[0] = new Scope("https://www.googleapis.com/auth/admin.directory.user.readonly"); scopes[1] = new Scope("https://www.googleapis.com/auth/contacts.readonly"); btnLogin.setScopes(scopes);
Enter success with an access token , but access tokens are only by default:
"userinfo.profile" & "userinfo.email" & "auth/plus.me"
Can you help me get 2 areas:
"/auth/admin.directory.user.readonly" & "/auth/contacts.readonly"
source share