scores
Overview
Name | scores |
Type | Resource |
Id | googledevelopers.games.scores |
Fields
Name | Datatype | Description |
---|---|---|
scoreValue | string | The numerical value of this score. |
writeTimestamp | string | The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. |
socialRank | object | A score rank in a leaderboard. |
leaderboard_id | string | The ID of the leaderboard this score is in. |
friendsRank | object | A score rank in a leaderboard. |
scoreString | string | The formatted value of this score. |
kind | string | Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScore . |
publicRank | object | A score rank in a leaderboard. |
scoreTag | string | Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |
timeSpan | string | The time span of this score. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | leaderboardId, playerId, timeSpan | 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'. |
list | SELECT | collection, leaderboardId, timeSpan | Lists the scores in a leaderboard, starting from the top. |
submit | EXEC | leaderboardId, score | Submits a score to the specified leaderboard. |
submitMultiple | EXEC | Submits multiple scores to leaderboards. |