Skip to main content

scores

Overview

Namescores
TypeResource
Idgoogledevelopers.games.scores

Fields

NameDatatypeDescription
scoreValuestringThe numerical value of this score.
writeTimestampstringThe timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
socialRankobjectA score rank in a leaderboard.
leaderboard_idstringThe ID of the leaderboard this score is in.
friendsRankobjectA score rank in a leaderboard.
scoreStringstringThe formatted value of this score.
kindstringUniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScore.
publicRankobjectA score rank in a leaderboard.
scoreTagstringAdditional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
timeSpanstringThe time span of this score.

Methods

NameAccessible byRequired ParamsDescription
getSELECTleaderboardId, playerId, timeSpanGet 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'.
listSELECTcollection, leaderboardId, timeSpanLists the scores in a leaderboard, starting from the top.
submitEXECleaderboardId, scoreSubmits a score to the specified leaderboard.
submitMultipleEXECSubmits multiple scores to leaderboards.