Debian Codegraph @

docs/dyn/games_v1.scores.html

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