Resource: GetLeaderboardScoresResponse
A list of player leaderboard scores.
JSON representation |
---|
{ "kind": string, "nextPageToken": string, "player": { object ( |
Fields | |
---|---|
kind |
Uniquely identifies the type of this resource. Value is always the fixed string |
nextPageToken |
The pagination token for the next page of results. |
player |
The Player resources for the owner of this score. |
items[] |
The leaderboard scores. |
LeaderboardScore
A player leaderboard score object.
JSON representation |
---|
{ "kind": string, "leaderboard_id": string, "scoreValue": string, "scoreString": string, "publicRank": { object ( |
Fields | |
---|---|
kind |
Uniquely identifies the type of this resource. Value is always the fixed string |
leaderboard_id |
The ID of the leaderboard this score is in. |
scoreValue |
The numerical value of this score. |
scoreString |
The formatted value of this score. |
publicRank |
The public rank of the score in this leaderboard. This object will not be present if the user is not sharing their scores publicly. |
socialRank |
The social rank of the score in this leaderboard. |
friendsRank |
The rank of the score in the friends collection for this leaderboard. |
timeSpan |
The time span of this score. |
writeTimestamp |
The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. |
scoreTag |
Additional information about the score. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. |
LeaderboardScoreRank
A score rank in a leaderboard.
JSON representation |
---|
{ "kind": string, "rank": string, "formattedRank": string, "numScores": string, "formattedNumScores": string } |
Fields | |
---|---|
kind |
Uniquely identifies the type of this resource. Value is always the fixed string |
rank |
The rank in the leaderboard. |
formattedRank |
The rank in the leaderboard as a string. |
numScores |
The number of scores in the leaderboard. |
formattedNumScores |
The number of scores in the leaderboard as a string. |
ScoreTimeSpan
Defines possible time spans for a score.
Enums | |
---|---|
ALL_TIME |
The score is an all-time score. |
WEEKLY |
The score is a weekly score. |
DAILY |
The score is a daily score. |
Methods |
|
---|---|
|
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. |
|
Lists the scores in a leaderboard, starting from the top. |
|
Lists the scores in a leaderboard around (and including) a player's score. |
|
Submits a score to the specified leaderboard. |
|
Submits multiple scores to leaderboards. |