GoogleApiClient
// Don’t do it this way! GoogleApiClient gac = new GoogleApiClient.Builder(this, this, this) .addApi(Games.API) .addScope(Plus.SCOPE_PLUS_LOGIN) // The bad part .build(); // Don’t do it this way!
plus.login
// This way you won’t get a consent screen GoogleApiClient gac = new GoogleApiClient.Builder(this, this, this) .addApi(Games.API) .build(); // This way you won’t get a consent screen
.addApi(Games.API, new GamesOptions.Builder() .setRequireGooglePlus(true).build())
Games.getCurrentPlayerId()
Plus.PeopleApi.load
com.google.android.gms.games
tokeninfo
GetServerAuthCode
Games.getGamesServerAuthCode(googleApiClient, “your_server_client_id”)
// Good way { GetServerAuthCodeResult result = Games.getGamesServerAuthCode(gac, clientId).await(); if (result.isSuccess()) { String authCode = result.getCode(); // Send code to server. } } // Good way
www.googleapis.com/games/v1/applications/<app_id>/verify/
"Authorization:OAuth <access_token>"
getGamesServerAuthCode()