blob: 4bdb134aed686795d46e020e065f16436293359c [file] [log] [blame]
John Asmuth614db982014-04-24 15:46:26 -04001<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
Bu Sun Kimd059ad82020-07-22 17:02:09 -070075<h1><a href="games_v1.html">Google Play Game Services</a> . <a href="games_v1.players.html">players</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#get">get(playerId, language=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Retrieves the Player resource with the given ID. To retrieve the player</p>
John Asmuth614db982014-04-24 15:46:26 -040080<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070081 <code><a href="#list">list(collection, language=None, pageToken=None, maxResults=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Get the collection of players for the currently authenticated user.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088 <code class="details" id="get">get(playerId, language=None, x__xgafv=None)</code>
89 <pre>Retrieves the Player resource with the given ID. To retrieve the player
90for the currently authenticated user, set `playerId` to `me`.
John Asmuth614db982014-04-24 15:46:26 -040091
92Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 playerId: string, A player ID. A value of `me` may be used in place of the
94authenticated player&#x27;s ID. (required)
John Asmuth614db982014-04-24 15:46:26 -040095 language: string, The preferred language to use for strings returned by this method.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 x__xgafv: string, V1 error format.
97 Allowed values
98 1 - v1 error format
99 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400100
101Returns:
102 An object of the form:
103
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104 { # A Player resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
109 &quot;profileSettings&quot;: { # Profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile
110 # is visible to other players.
111 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
112 # string `games#profileSettings`.
113 &quot;friendsListVisibility&quot;: &quot;A String&quot;,
114 &quot;profileVisible&quot;: True or False, # Whether the player&#x27;s profile is visible to the currently signed in player.
115 },
116 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
117 # string `games#player`
118 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is
119 # unset if the player is not sharing their friends list with the game.
120 &quot;name&quot;: { # A representation of the individual components of the name.
121 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last
122 # name.
123 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first
124 # name.
125 },
126 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
127 &quot;experienceInfo&quot;: { # 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
128 &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,
129 # this should be same as the current level.
130 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
131 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
132 &quot;level&quot;: 42, # The level for the user.
133 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
134 # string `games#playerLevel`.
135 },
136 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
137 &quot;currentLevel&quot;: { # 1P/3P metadata about a user&#x27;s level. # The current level of the player.
138 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
139 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
140 &quot;level&quot;: 42, # The level for the user.
141 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
142 # string `games#playerLevel`.
143 },
144 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch
145 # UTC.
146 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
147 # string `games#playerExperienceInfo`.
148 },
149 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
150 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into
151 # the game in question. This is only populated for calls to player.get for
152 # the requesting player, only if the player ID has subsequently changed, and
153 # only to clients that support remapping player IDs.
John Asmuth614db982014-04-24 15:46:26 -0400154 }</pre>
155</div>
156
157<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700158 <code class="details" id="list">list(collection, language=None, pageToken=None, maxResults=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400159 <pre>Get the collection of players for the currently authenticated user.
160
161Args:
162 collection: string, Collection of players being retrieved (required)
John Asmuth614db982014-04-24 15:46:26 -0400163 language: string, The preferred language to use for strings returned by this method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 pageToken: string, The token returned by the previous request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700165 maxResults: integer, The maximum number of player resources to return in the response, used for
166paging. For any response, the actual number of player resources returned
167may be less than the specified `maxResults`.
168 x__xgafv: string, V1 error format.
169 Allowed values
170 1 - v1 error format
171 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400172
173Returns:
174 An object of the form:
175
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 { # A third party player list response.
177 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
178 # string `games#playerListResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 &quot;items&quot;: [ # The players.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700180 { # A Player resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700181 &quot;bannerUrlPortrait&quot;: &quot;A String&quot;, # The url to the portrait mode player banner image.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 &quot;avatarImageUrl&quot;: &quot;A String&quot;, # The base URL for the image that represents the player.
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;title&quot;: &quot;A String&quot;, # The player&#x27;s title rewarded for their game activities.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700184 &quot;displayName&quot;: &quot;A String&quot;, # The name to display for the player.
185 &quot;profileSettings&quot;: { # Profile settings # The player&#x27;s profile settings. Controls whether or not the player&#x27;s profile
186 # is visible to other players.
187 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
188 # string `games#profileSettings`.
189 &quot;friendsListVisibility&quot;: &quot;A String&quot;,
190 &quot;profileVisible&quot;: True or False, # Whether the player&#x27;s profile is visible to the currently signed in player.
191 },
192 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
193 # string `games#player`
194 &quot;friendStatus&quot;: &quot;A String&quot;, # The friend status of the given player, relative to the requester. This is
195 # unset if the player is not sharing their friends list with the game.
196 &quot;name&quot;: { # A representation of the individual components of the name.
197 &quot;familyName&quot;: &quot;A String&quot;, # The family name of this player. In some places, this is known as the last
198 # name.
199 &quot;givenName&quot;: &quot;A String&quot;, # The given name of this player. In some places, this is known as the first
200 # name.
201 },
202 &quot;bannerUrlLandscape&quot;: &quot;A String&quot;, # The url to the landscape mode player banner image.
203 &quot;experienceInfo&quot;: { # 1P/3P metadata about the player&#x27;s experience. # An object to represent Play Game experience information for the player.
204 &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,
205 # this should be same as the current level.
206 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
207 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
208 &quot;level&quot;: 42, # The level for the user.
209 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
210 # string `games#playerLevel`.
211 },
212 &quot;currentExperiencePoints&quot;: &quot;A String&quot;, # The current number of experience points for the player.
213 &quot;currentLevel&quot;: { # 1P/3P metadata about a user&#x27;s level. # The current level of the player.
214 &quot;minExperiencePoints&quot;: &quot;A String&quot;, # The minimum experience points for this level.
215 &quot;maxExperiencePoints&quot;: &quot;A String&quot;, # The maximum experience points for this level.
216 &quot;level&quot;: 42, # The level for the user.
217 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
218 # string `games#playerLevel`.
219 },
220 &quot;lastLevelUpTimestampMillis&quot;: &quot;A String&quot;, # The timestamp when the player was leveled up, in millis since Unix epoch
221 # UTC.
222 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
223 # string `games#playerExperienceInfo`.
224 },
225 &quot;playerId&quot;: &quot;A String&quot;, # The ID of the player.
226 &quot;originalPlayerId&quot;: &quot;A String&quot;, # The player ID that was used for this player the first time they signed into
227 # the game in question. This is only populated for calls to player.get for
228 # the requesting player, only if the player ID has subsequently changed, and
229 # only to clients that support remapping player IDs.
John Asmuth614db982014-04-24 15:46:26 -0400230 },
231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token corresponding to the next page of results.
John Asmuth614db982014-04-24 15:46:26 -0400233 }</pre>
234</div>
235
236<div class="method">
237 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
238 <pre>Retrieves the next page of results.
239
240Args:
241 previous_request: The request for the previous page. (required)
242 previous_response: The response from the request for the previous page. (required)
243
244Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700245 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400246 page. Returns None if there are no more items in the collection.
247 </pre>
248</div>
249
250</body></html>