Scores
class Scores extends Resource (View source)
The "scores" collection of methods.
Typical usage is:
$gamesService = new Google\Service\Games(...);
$scores = $gamesService->scores;
Methods
Get high scores, and optionally ranks, in leaderboards for the currently
authenticated player. For a specific time span, leaderboardId
can be set to
ALL
to retrieve data for all leaderboards in a given time span. `NOTE: You
cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request;
only one parameter may be set to 'ALL'. (scores.get)
Lists the scores in a leaderboard, starting from the top. (scores.listScores)
Lists the scores in a leaderboard around (and including) a player's score.
Submits a score to the specified leaderboard. (scores.submit)
Submits multiple scores to leaderboards. (scores.submitMultiple)
Details
PlayerLeaderboardScoreListResponse
get(string $playerId, string $leaderboardId, string $timeSpan, array $optParams = [])
Get high scores, and optionally ranks, in leaderboards for the currently
authenticated player. For a specific time span, leaderboardId
can be set to
ALL
to retrieve data for all leaderboards in a given time span. `NOTE: You
cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request;
only one parameter may be set to 'ALL'. (scores.get)
LeaderboardScores
listScores(string $leaderboardId, string $collection, string $timeSpan, array $optParams = [])
Lists the scores in a leaderboard, starting from the top. (scores.listScores)
LeaderboardScores
listWindow(string $leaderboardId, string $collection, string $timeSpan, array $optParams = [])
Lists the scores in a leaderboard around (and including) a player's score.
(scores.listWindow)
PlayerScoreResponse
submit(string $leaderboardId, string $score, array $optParams = [])
Submits a score to the specified leaderboard. (scores.submit)
PlayerScoreListResponse
submitMultiple(PlayerScoreSubmissionList $postBody, array $optParams = [])
Submits multiple scores to leaderboards. (scores.submitMultiple)