class Scores extends Resource (View source)

The "scores" collection of methods.

Typical usage is:

 $gamesManagementService = new Google\Service\GamesManagement(...);
 $scores = $gamesManagementService->scores;

Methods

reset(string $leaderboardId, array $optParams = [])

Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. (scores.reset)

resetAll(array $optParams = [])

Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application. (scores.resetAll)

resetAllForAllPlayers(array $optParams = [])

Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.

resetForAllPlayers(string $leaderboardId, array $optParams = [])

Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset. (scores.resetForAllPlayers)

resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest $postBody, array $optParams = [])

Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset. (scores.resetMultipleForAllPlayers)

Details

PlayerScoreResetResponse reset(string $leaderboardId, array $optParams = [])

Resets scores for the leaderboard with the given ID for the currently authenticated player. This method is only accessible to whitelisted tester accounts for your application. (scores.reset)

Parameters

string $leaderboardId

The ID of the leaderboard.

array $optParams

Optional parameters.

Return Value

PlayerScoreResetResponse

Exceptions

Exception

PlayerScoreResetAllResponse resetAll(array $optParams = [])

Resets all scores for all leaderboards for the currently authenticated players. This method is only accessible to whitelisted tester accounts for your application. (scores.resetAll)

Parameters

array $optParams

Optional parameters.

Return Value

PlayerScoreResetAllResponse

Exceptions

Exception

resetAllForAllPlayers(array $optParams = [])

Resets scores for all draft leaderboards for all players. This method is only available to user accounts for your developer console.

(scores.resetAllForAllPlayers)

Parameters

array $optParams

Optional parameters.

Exceptions

Exception

resetForAllPlayers(string $leaderboardId, array $optParams = [])

Resets scores for the leaderboard with the given ID for all players. This method is only available to user accounts for your developer console. Only draft leaderboards can be reset. (scores.resetForAllPlayers)

Parameters

string $leaderboardId

The ID of the leaderboard.

array $optParams

Optional parameters.

Exceptions

Exception

resetMultipleForAllPlayers(ScoresResetMultipleForAllRequest $postBody, array $optParams = [])

Resets scores for the leaderboards with the given IDs for all players. This method is only available to user accounts for your developer console. Only draft leaderboards may be reset. (scores.resetMultipleForAllPlayers)

Parameters

ScoresResetMultipleForAllRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception