1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="games_v1.html">Google Play Game Services API</a> . <a href="games_v1.scores.html">scores</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#get">get(playerId, leaderboardId, timeSpan, includeRankType=None, language=None, maxResults=None, pageToken=None)</a></code></p> 79<p class="firstline">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.</p> 80<p class="toc_element"> 81 <code><a href="#get_next">get_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#list">list(leaderboardId, collection, timeSpan, language=None, maxResults=None, pageToken=None)</a></code></p> 85<p class="firstline">Lists the scores in a leaderboard, starting from the top.</p> 86<p class="toc_element"> 87 <code><a href="#listWindow">listWindow(leaderboardId, collection, timeSpan, language=None, returnTopIfAbsent=None, resultsAbove=None, maxResults=None, pageToken=None)</a></code></p> 88<p class="firstline">Lists the scores in a leaderboard around (and including) a player's score.</p> 89<p class="toc_element"> 90 <code><a href="#listWindow_next">listWindow_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#submit">submit(leaderboardId, score, language=None, scoreTag=None)</a></code></p> 97<p class="firstline">Submits a score to the specified leaderboard.</p> 98<p class="toc_element"> 99 <code><a href="#submitMultiple">submitMultiple(body, language=None)</a></code></p> 100<p class="firstline">Submits multiple scores to leaderboards.</p> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="get">get(playerId, leaderboardId, timeSpan, includeRankType=None, language=None, maxResults=None, pageToken=None)</code> 104 <pre>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. 105NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'. 106 107Args: 108 playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required) 109 leaderboardId: string, The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application. (required) 110 timeSpan: string, The time span for the scores and ranks you're requesting. (required) 111 Allowed values 112 ALL - Get the high scores for all time spans. If this is used, maxResults values will be ignored. 113 ALL_TIME - Get the all time high score. 114 DAILY - List the top scores for the current day. 115 WEEKLY - List the top scores for the current week. 116 includeRankType: string, The types of ranks to return. If the parameter is omitted, no ranks will be returned. 117 Allowed values 118 ALL - Retrieve public and social ranks. 119 PUBLIC - Retrieve public ranks, if the player is sharing their gameplay activity publicly. 120 SOCIAL - Retrieve the social rank. 121 language: string, The preferred language to use for strings returned by this method. 122 maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults. 123 pageToken: string, The token returned by the previous request. 124 125Returns: 126 An object of the form: 127 128 { # This is a JSON template for a list of player leaderboard scores. 129 "nextPageToken": "A String", # The pagination token for the next page of results. 130 "items": [ # The leaderboard scores. 131 { # This is a JSON template for a player leaderboard score object. 132 "writeTimestamp": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. 133 "kind": "games#playerLeaderboardScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScore. 134 "publicRank": { # This is a JSON template for a score rank in a leaderboard. # The public rank of the score in this leaderboard. This object will not be present if the user is not sharing their scores publicly. 135 "numScores": "A String", # The number of scores in the leaderboard. 136 "kind": "games#leaderboardScoreRank", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScoreRank. 137 "formattedRank": "A String", # The rank in the leaderboard as a string. 138 "rank": "A String", # The rank in the leaderboard. 139 "formattedNumScores": "A String", # The number of scores in the leaderboard as a string. 140 }, 141 "scoreTag": "A 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. 142 "timeSpan": "A String", # The time span of this score. 143 # Possible values are: 144 # - "ALL_TIME" - The score is an all-time score. 145 # - "WEEKLY" - The score is a weekly score. 146 # - "DAILY" - The score is a daily score. 147 "scoreString": "A String", # The formatted value of this score. 148 "leaderboard_id": "A String", # The ID of the leaderboard this score is in. 149 "scoreValue": "A String", # The numerical value of this score. 150 "socialRank": { # This is a JSON template for a score rank in a leaderboard. # The social rank of the score in this leaderboard. 151 "numScores": "A String", # The number of scores in the leaderboard. 152 "kind": "games#leaderboardScoreRank", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScoreRank. 153 "formattedRank": "A String", # The rank in the leaderboard as a string. 154 "rank": "A String", # The rank in the leaderboard. 155 "formattedNumScores": "A String", # The number of scores in the leaderboard as a string. 156 }, 157 }, 158 ], 159 "kind": "games#playerLeaderboardScoreListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScoreListResponse. 160 "player": { # This is a JSON template for a Player resource. # The Player resources for the owner of this score. 161 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 162 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 163 "displayName": "A String", # The name to display for the player. 164 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 165 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 166 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 167 }, 168 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 169 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 170 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 171 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 172 }, 173 "playerId": "A String", # The ID of the player. 174 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 175 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 176 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 177 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 178 }, 179 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 180 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 181 "currentExperiencePoints": "A String", # The current number of experience points for the player. 182 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 183 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 184 "maxExperiencePoints": "A String", # The maximum experience points for this level. 185 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 186 "minExperiencePoints": "A String", # The minimum experience points for this level. 187 "level": 42, # The level for the user. 188 }, 189 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 190 "maxExperiencePoints": "A String", # The maximum experience points for this level. 191 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 192 "minExperiencePoints": "A String", # The minimum experience points for this level. 193 "level": 42, # The level for the user. 194 }, 195 }, 196 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 197 "title": "A String", # The player's title rewarded for their game activities. 198 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 199 }, 200 }</pre> 201</div> 202 203<div class="method"> 204 <code class="details" id="get_next">get_next(previous_request, previous_response)</code> 205 <pre>Retrieves the next page of results. 206 207Args: 208 previous_request: The request for the previous page. (required) 209 previous_response: The response from the request for the previous page. (required) 210 211Returns: 212 A request object that you can call 'execute()' on to request the next 213 page. Returns None if there are no more items in the collection. 214 </pre> 215</div> 216 217<div class="method"> 218 <code class="details" id="list">list(leaderboardId, collection, timeSpan, language=None, maxResults=None, pageToken=None)</code> 219 <pre>Lists the scores in a leaderboard, starting from the top. 220 221Args: 222 leaderboardId: string, The ID of the leaderboard. (required) 223 collection: string, The collection of scores you're requesting. (required) 224 Allowed values 225 PUBLIC - List all scores in the public leaderboard. 226 SOCIAL - List only social scores. 227 SOCIAL_1P - List only social scores, not respecting the fACL. 228 timeSpan: string, The time span for the scores and ranks you're requesting. (required) 229 Allowed values 230 ALL_TIME - List the all-time top scores. 231 DAILY - List the top scores for the current day. 232 WEEKLY - List the top scores for the current week. 233 language: string, The preferred language to use for strings returned by this method. 234 maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults. 235 pageToken: string, The token returned by the previous request. 236 237Returns: 238 An object of the form: 239 240 { # This is a JSON template for a ListScores response. 241 "nextPageToken": "A String", # The pagination token for the next page of results. 242 "kind": "games#leaderboardScores", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScores. 243 "numScores": "A String", # The total number of scores in the leaderboard. 244 "items": [ # The scores in the leaderboard. 245 { # This is a JSON template for the Leaderboard Entry resource. 246 "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry. 247 "scoreValue": "A String", # The numerical value of this score. 248 "scoreTag": "A 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. 249 "timeSpan": "A String", # The time span of this high score. 250 # Possible values are: 251 # - "ALL_TIME" - The score is an all-time high score. 252 # - "WEEKLY" - The score is a weekly high score. 253 # - "DAILY" - The score is a daily high score. 254 "formattedScore": "A String", # The localized string for the numerical value of this score. 255 "player": { # This is a JSON template for a Player resource. # The player who holds this score. 256 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 257 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 258 "displayName": "A String", # The name to display for the player. 259 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 260 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 261 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 262 }, 263 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 264 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 265 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 266 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 267 }, 268 "playerId": "A String", # The ID of the player. 269 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 270 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 271 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 272 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 273 }, 274 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 275 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 276 "currentExperiencePoints": "A String", # The current number of experience points for the player. 277 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 278 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 279 "maxExperiencePoints": "A String", # The maximum experience points for this level. 280 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 281 "minExperiencePoints": "A String", # The minimum experience points for this level. 282 "level": 42, # The level for the user. 283 }, 284 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 285 "maxExperiencePoints": "A String", # The maximum experience points for this level. 286 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 287 "minExperiencePoints": "A String", # The minimum experience points for this level. 288 "level": 42, # The level for the user. 289 }, 290 }, 291 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 292 "title": "A String", # The player's title rewarded for their game activities. 293 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 294 }, 295 "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard. 296 "scoreRank": "A String", # The rank of this score for this leaderboard. 297 "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. 298 }, 299 ], 300 "playerScore": { # This is a JSON template for the Leaderboard Entry resource. # The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the scoreRank and formattedScoreRank values will not be present. 301 "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry. 302 "scoreValue": "A String", # The numerical value of this score. 303 "scoreTag": "A 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. 304 "timeSpan": "A String", # The time span of this high score. 305 # Possible values are: 306 # - "ALL_TIME" - The score is an all-time high score. 307 # - "WEEKLY" - The score is a weekly high score. 308 # - "DAILY" - The score is a daily high score. 309 "formattedScore": "A String", # The localized string for the numerical value of this score. 310 "player": { # This is a JSON template for a Player resource. # The player who holds this score. 311 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 312 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 313 "displayName": "A String", # The name to display for the player. 314 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 315 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 316 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 317 }, 318 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 319 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 320 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 321 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 322 }, 323 "playerId": "A String", # The ID of the player. 324 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 325 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 326 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 327 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 328 }, 329 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 330 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 331 "currentExperiencePoints": "A String", # The current number of experience points for the player. 332 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 333 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 334 "maxExperiencePoints": "A String", # The maximum experience points for this level. 335 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 336 "minExperiencePoints": "A String", # The minimum experience points for this level. 337 "level": 42, # The level for the user. 338 }, 339 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 340 "maxExperiencePoints": "A String", # The maximum experience points for this level. 341 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 342 "minExperiencePoints": "A String", # The minimum experience points for this level. 343 "level": 42, # The level for the user. 344 }, 345 }, 346 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 347 "title": "A String", # The player's title rewarded for their game activities. 348 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 349 }, 350 "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard. 351 "scoreRank": "A String", # The rank of this score for this leaderboard. 352 "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. 353 }, 354 "prevPageToken": "A String", # The pagination token for the previous page of results. 355 }</pre> 356</div> 357 358<div class="method"> 359 <code class="details" id="listWindow">listWindow(leaderboardId, collection, timeSpan, language=None, returnTopIfAbsent=None, resultsAbove=None, maxResults=None, pageToken=None)</code> 360 <pre>Lists the scores in a leaderboard around (and including) a player's score. 361 362Args: 363 leaderboardId: string, The ID of the leaderboard. (required) 364 collection: string, The collection of scores you're requesting. (required) 365 Allowed values 366 PUBLIC - List all scores in the public leaderboard. 367 SOCIAL - List only social scores. 368 SOCIAL_1P - List only social scores, not respecting the fACL. 369 timeSpan: string, The time span for the scores and ranks you're requesting. (required) 370 Allowed values 371 ALL_TIME - List the all-time top scores. 372 DAILY - List the top scores for the current day. 373 WEEKLY - List the top scores for the current week. 374 language: string, The preferred language to use for strings returned by this method. 375 returnTopIfAbsent: boolean, True if the top scores should be returned when the player is not in the leaderboard. Defaults to true. 376 resultsAbove: integer, The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults. 377 maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults. 378 pageToken: string, The token returned by the previous request. 379 380Returns: 381 An object of the form: 382 383 { # This is a JSON template for a ListScores response. 384 "nextPageToken": "A String", # The pagination token for the next page of results. 385 "kind": "games#leaderboardScores", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScores. 386 "numScores": "A String", # The total number of scores in the leaderboard. 387 "items": [ # The scores in the leaderboard. 388 { # This is a JSON template for the Leaderboard Entry resource. 389 "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry. 390 "scoreValue": "A String", # The numerical value of this score. 391 "scoreTag": "A 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. 392 "timeSpan": "A String", # The time span of this high score. 393 # Possible values are: 394 # - "ALL_TIME" - The score is an all-time high score. 395 # - "WEEKLY" - The score is a weekly high score. 396 # - "DAILY" - The score is a daily high score. 397 "formattedScore": "A String", # The localized string for the numerical value of this score. 398 "player": { # This is a JSON template for a Player resource. # The player who holds this score. 399 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 400 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 401 "displayName": "A String", # The name to display for the player. 402 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 403 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 404 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 405 }, 406 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 407 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 408 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 409 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 410 }, 411 "playerId": "A String", # The ID of the player. 412 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 413 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 414 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 415 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 416 }, 417 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 418 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 419 "currentExperiencePoints": "A String", # The current number of experience points for the player. 420 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 421 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 422 "maxExperiencePoints": "A String", # The maximum experience points for this level. 423 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 424 "minExperiencePoints": "A String", # The minimum experience points for this level. 425 "level": 42, # The level for the user. 426 }, 427 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 428 "maxExperiencePoints": "A String", # The maximum experience points for this level. 429 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 430 "minExperiencePoints": "A String", # The minimum experience points for this level. 431 "level": 42, # The level for the user. 432 }, 433 }, 434 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 435 "title": "A String", # The player's title rewarded for their game activities. 436 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 437 }, 438 "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard. 439 "scoreRank": "A String", # The rank of this score for this leaderboard. 440 "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. 441 }, 442 ], 443 "playerScore": { # This is a JSON template for the Leaderboard Entry resource. # The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the scoreRank and formattedScoreRank values will not be present. 444 "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry. 445 "scoreValue": "A String", # The numerical value of this score. 446 "scoreTag": "A 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. 447 "timeSpan": "A String", # The time span of this high score. 448 # Possible values are: 449 # - "ALL_TIME" - The score is an all-time high score. 450 # - "WEEKLY" - The score is a weekly high score. 451 # - "DAILY" - The score is a daily high score. 452 "formattedScore": "A String", # The localized string for the numerical value of this score. 453 "player": { # This is a JSON template for a Player resource. # The player who holds this score. 454 "originalPlayerId": "A String", # The player ID that was used for this player the first time they signed into the game in question. This is only populated for calls to player.get for the requesting player, only if the player ID has subsequently changed, and only to clients that support remapping player IDs. 455 "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player. 456 "displayName": "A String", # The name to display for the player. 457 "name": { # An object representation of the individual components of the player's name. For some players, these fields may not be present. 458 "givenName": "A String", # The given name of this player. In some places, this is known as the first name. 459 "familyName": "A String", # The family name of this player. In some places, this is known as the last name. 460 }, 461 "lastPlayedWith": { # This is a JSON template for metadata about a player playing a game with the currently authenticated user. # Details about the last time this player played a multiplayer game with the currently authenticated player. Populated for PLAYED_WITH player collection members. 462 "autoMatched": True or False, # True if the player was auto-matched with the currently authenticated user. 463 "kind": "games#played", # Uniquely identifies the type of this resource. Value is always the fixed string games#played. 464 "timeMillis": "A String", # The last time the player played the game in milliseconds since the epoch in UTC. 465 }, 466 "playerId": "A String", # The ID of the player. 467 "bannerUrlPortrait": "A String", # The url to the portrait mode player banner image. 468 "profileSettings": { # This is a JSON template for profile settings # The player's profile settings. Controls whether or not the player's profile is visible to other players. 469 "kind": "games#profileSettings", # Uniquely identifies the type of this resource. Value is always the fixed string games#profileSettings. 470 "profileVisible": True or False, # The player's current profile visibility. This field is visible to both 1P and 3P APIs. 471 }, 472 "experienceInfo": { # This is a JSON template for 1P/3P metadata about the player's experience. # An object to represent Play Game experience information for the player. 473 "lastLevelUpTimestampMillis": "A String", # The timestamp when the player was leveled up, in millis since Unix epoch UTC. 474 "currentExperiencePoints": "A String", # The current number of experience points for the player. 475 "kind": "games#playerExperienceInfo", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerExperienceInfo. 476 "currentLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The current level of the player. 477 "maxExperiencePoints": "A String", # The maximum experience points for this level. 478 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 479 "minExperiencePoints": "A String", # The minimum experience points for this level. 480 "level": 42, # The level for the user. 481 }, 482 "nextLevel": { # This is a JSON template for 1P/3P metadata about a user's level. # The next level of the player. If the current level is the maximum level, this should be same as the current level. 483 "maxExperiencePoints": "A String", # The maximum experience points for this level. 484 "kind": "games#playerLevel", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLevel. 485 "minExperiencePoints": "A String", # The minimum experience points for this level. 486 "level": 42, # The level for the user. 487 }, 488 }, 489 "bannerUrlLandscape": "A String", # The url to the landscape mode player banner image. 490 "title": "A String", # The player's title rewarded for their game activities. 491 "avatarImageUrl": "A String", # The base URL for the image that represents the player. 492 }, 493 "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard. 494 "scoreRank": "A String", # The rank of this score for this leaderboard. 495 "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC. 496 }, 497 "prevPageToken": "A String", # The pagination token for the previous page of results. 498 }</pre> 499</div> 500 501<div class="method"> 502 <code class="details" id="listWindow_next">listWindow_next(previous_request, previous_response)</code> 503 <pre>Retrieves the next page of results. 504 505Args: 506 previous_request: The request for the previous page. (required) 507 previous_response: The response from the request for the previous page. (required) 508 509Returns: 510 A request object that you can call 'execute()' on to request the next 511 page. Returns None if there are no more items in the collection. 512 </pre> 513</div> 514 515<div class="method"> 516 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 517 <pre>Retrieves the next page of results. 518 519Args: 520 previous_request: The request for the previous page. (required) 521 previous_response: The response from the request for the previous page. (required) 522 523Returns: 524 A request object that you can call 'execute()' on to request the next 525 page. Returns None if there are no more items in the collection. 526 </pre> 527</div> 528 529<div class="method"> 530 <code class="details" id="submit">submit(leaderboardId, score, language=None, scoreTag=None)</code> 531 <pre>Submits a score to the specified leaderboard. 532 533Args: 534 leaderboardId: string, The ID of the leaderboard. (required) 535 score: string, The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units. (required) 536 language: string, The preferred language to use for strings returned by this method. 537 scoreTag: string, Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 538 539Returns: 540 An object of the form: 541 542 { # This is a JSON template for a list of leaderboard entry resources. 543 "kind": "games#playerScoreResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse. 544 "scoreTag": "A String", # Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 545 "leaderboardId": "A String", # The leaderboard ID that this score was submitted to. 546 "formattedScore": "A String", # The formatted value of the submitted score. 547 "beatenScoreTimeSpans": [ # The time spans where the submitted score is better than the existing score for that time span. 548 # Possible values are: 549 # - "ALL_TIME" - The score is an all-time score. 550 # - "WEEKLY" - The score is a weekly score. 551 # - "DAILY" - The score is a daily score. 552 "A String", 553 ], 554 "unbeatenScores": [ # The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans. 555 { # This is a JSON template for a player score. 556 "kind": "games#playerScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScore. 557 "score": "A String", # The numerical value for this player score. 558 "formattedScore": "A String", # The formatted score for this player score. 559 "scoreTag": "A String", # Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 560 "timeSpan": "A String", # The time span for this player score. 561 # Possible values are: 562 # - "ALL_TIME" - The score is an all-time score. 563 # - "WEEKLY" - The score is a weekly score. 564 # - "DAILY" - The score is a daily score. 565 }, 566 ], 567 }</pre> 568</div> 569 570<div class="method"> 571 <code class="details" id="submitMultiple">submitMultiple(body, language=None)</code> 572 <pre>Submits multiple scores to leaderboards. 573 574Args: 575 body: object, The request body. (required) 576 The object takes the form of: 577 578{ # This is a JSON template for a list of score submission requests 579 "kind": "games#playerScoreSubmissionList", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreSubmissionList. 580 "scores": [ # The score submissions. 581 { # This is a JSON template for a request to submit a score to leaderboards. 582 "kind": "games#scoreSubmission", # Uniquely identifies the type of this resource. Value is always the fixed string games#scoreSubmission. 583 "leaderboardId": "A String", # The leaderboard this score is being submitted to. 584 "score": "A String", # The new score being submitted. 585 "scoreTag": "A String", # Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 586 "signature": "A String", # Signature Values will contain URI-safe characters as defined by section 2.3 of RFC 3986. 587 }, 588 ], 589 } 590 591 language: string, The preferred language to use for strings returned by this method. 592 593Returns: 594 An object of the form: 595 596 { # This is a JSON template for a list of score submission statuses. 597 "submittedScores": [ # The score submissions statuses. 598 { # This is a JSON template for a list of leaderboard entry resources. 599 "kind": "games#playerScoreResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse. 600 "scoreTag": "A String", # Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 601 "leaderboardId": "A String", # The leaderboard ID that this score was submitted to. 602 "formattedScore": "A String", # The formatted value of the submitted score. 603 "beatenScoreTimeSpans": [ # The time spans where the submitted score is better than the existing score for that time span. 604 # Possible values are: 605 # - "ALL_TIME" - The score is an all-time score. 606 # - "WEEKLY" - The score is a weekly score. 607 # - "DAILY" - The score is a daily score. 608 "A String", 609 ], 610 "unbeatenScores": [ # The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans. 611 { # This is a JSON template for a player score. 612 "kind": "games#playerScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScore. 613 "score": "A String", # The numerical value for this player score. 614 "formattedScore": "A String", # The formatted score for this player score. 615 "scoreTag": "A String", # Additional information about this score. Values will contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986. 616 "timeSpan": "A String", # The time span for this player score. 617 # Possible values are: 618 # - "ALL_TIME" - The score is an all-time score. 619 # - "WEEKLY" - The score is a weekly score. 620 # - "DAILY" - The score is a daily score. 621 }, 622 ], 623 }, 624 ], 625 "kind": "games#playerScoreListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreListResponse. 626 }</pre> 627</div> 628 629</body></html>