blob: 8080e3f3ddf19ac61b6b3e1a7e26379f813890f1 [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.achievements.html">achievements</a></h1>
John Asmuth614db982014-04-24 15:46:26 -040076<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
John Asmuth614db982014-04-24 15:46:26 -040080<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#increment">increment(achievementId, stepsToIncrement, requestId=None, x__xgafv=None)</a></code></p>
82<p class="firstline">Increments the steps of the achievement with the given ID for the currently authenticated player.</p>
83<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080084 <code><a href="#list">list(playerId, language=None, state=None, pageToken=None, maxResults=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Lists the progress for all your application's achievements for the currently authenticated player.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070090 <code><a href="#reveal">reveal(achievementId, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Sets the state of the achievement with the given ID to `REVEALED` for the currently authenticated player.</p>
John Asmuth614db982014-04-24 15:46:26 -040092<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070093 <code><a href="#setStepsAtLeast">setStepsAtLeast(achievementId, steps, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<p class="firstline">Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.</p>
John Asmuth614db982014-04-24 15:46:26 -040095<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096 <code><a href="#unlock">unlock(achievementId, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040097<p class="firstline">Unlocks this achievement for the currently authenticated player.</p>
98<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070099 <code><a href="#updateMultiple">updateMultiple(body=None, x__xgafv=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -0400100<p class="firstline">Updates multiple achievements for the currently authenticated player.</p>
101<h3>Method Details</h3>
102<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700103 <code class="details" id="close">close()</code>
104 <pre>Close httplib2 connections.</pre>
105</div>
106
107<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700108 <code class="details" id="increment">increment(achievementId, stepsToIncrement, requestId=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109 <pre>Increments the steps of the achievement with the given ID for the currently authenticated player.
John Asmuth614db982014-04-24 15:46:26 -0400110
111Args:
112 achievementId: string, The ID of the achievement used by this method. (required)
113 stepsToIncrement: integer, The number of steps to increment. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 requestId: string, A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the request is handled correctly across retries.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700115 x__xgafv: string, V1 error format.
116 Allowed values
117 1 - v1 error format
118 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400119
120Returns:
121 An object of the form:
122
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700123 { # An achievement increment response
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700124 &quot;newlyUnlocked&quot;: True or False, # Whether the current steps for the achievement has reached the number of steps required to unlock.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700125 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementIncrementResponse`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800126 &quot;currentSteps&quot;: 42, # The current steps recorded for this incremental achievement.
John Asmuth614db982014-04-24 15:46:26 -0400127 }</pre>
128</div>
129
130<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800131 <code class="details" id="list">list(playerId, language=None, state=None, pageToken=None, maxResults=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700132 <pre>Lists the progress for all your application&#x27;s achievements for the currently authenticated player.
John Asmuth614db982014-04-24 15:46:26 -0400133
134Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700135 playerId: string, A player ID. A value of `me` may be used in place of the authenticated player&#x27;s ID. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800136 language: string, The preferred language to use for strings returned by this method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700137 state: string, Tells the server to return only achievements with the specified state. If this parameter isn&#x27;t specified, all achievements are returned.
138 Allowed values
139 ALL - List all achievements. This is the default.
140 HIDDEN - List only hidden achievements.
141 REVEALED - List only revealed achievements.
142 UNLOCKED - List only unlocked achievements.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800143 pageToken: string, The token returned by the previous request.
144 maxResults: integer, The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified `maxResults`.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700145 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -0400146 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700147 1 - v1 error format
148 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400149
150Returns:
151 An object of the form:
152
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700153 { # A list of achievement objects.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800154 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievementListResponse`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800155 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token corresponding to the next page of results.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800156 &quot;items&quot;: [ # The achievements.
157 { # An achievement object.
158 &quot;achievementState&quot;: &quot;A String&quot;, # The state of the achievement.
159 &quot;experiencePoints&quot;: &quot;A String&quot;, # Experience points earned for the achievement. This field is absent for achievements that have not yet been unlocked and 0 for achievements that have been unlocked by testers but that are unpublished.
160 &quot;id&quot;: &quot;A String&quot;, # The ID of the achievement.
161 &quot;currentSteps&quot;: 42, # The current steps for an incremental achievement.
162 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#playerAchievement`.
163 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # The timestamp of the last modification to this achievement&#x27;s state.
164 &quot;formattedCurrentStepsString&quot;: &quot;A String&quot;, # The current steps for an incremental achievement as a string.
165 },
166 ],
John Asmuth614db982014-04-24 15:46:26 -0400167 }</pre>
168</div>
169
170<div class="method">
171 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
172 <pre>Retrieves the next page of results.
173
174Args:
175 previous_request: The request for the previous page. (required)
176 previous_response: The response from the request for the previous page. (required)
177
178Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 A request object that you can call &#x27;execute()&#x27; on to request the next
John Asmuth614db982014-04-24 15:46:26 -0400180 page. Returns None if there are no more items in the collection.
181 </pre>
182</div>
183
184<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700185 <code class="details" id="reveal">reveal(achievementId, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700186 <pre>Sets the state of the achievement with the given ID to `REVEALED` for the currently authenticated player.
John Asmuth614db982014-04-24 15:46:26 -0400187
188Args:
189 achievementId: string, The ID of the achievement used by this method. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 x__xgafv: string, V1 error format.
191 Allowed values
192 1 - v1 error format
193 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400194
195Returns:
196 An object of the form:
197
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700198 { # An achievement reveal response
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700199 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the achievement for which a reveal was attempted. This might be `UNLOCKED` if the achievement was already unlocked.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700200 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementRevealResponse`.
John Asmuth614db982014-04-24 15:46:26 -0400201 }</pre>
202</div>
203
204<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 <code class="details" id="setStepsAtLeast">setStepsAtLeast(achievementId, steps, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700206 <pre>Sets the steps for the currently authenticated player towards unlocking an achievement. If the steps parameter is less than the current number of steps that the player already gained for the achievement, the achievement is not modified.
John Asmuth614db982014-04-24 15:46:26 -0400207
208Args:
209 achievementId: string, The ID of the achievement used by this method. (required)
210 steps: integer, The minimum value to set the steps to. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 x__xgafv: string, V1 error format.
212 Allowed values
213 1 - v1 error format
214 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400215
216Returns:
217 An object of the form:
218
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700219 { # An achievement set steps at least response.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &quot;newlyUnlocked&quot;: True or False, # Whether the current steps for the achievement has reached the number of steps required to unlock.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800221 &quot;currentSteps&quot;: 42, # The current steps recorded for this incremental achievement.
222 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementSetStepsAtLeastResponse`.
John Asmuth614db982014-04-24 15:46:26 -0400223 }</pre>
224</div>
225
226<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700227 <code class="details" id="unlock">unlock(achievementId, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400228 <pre>Unlocks this achievement for the currently authenticated player.
229
230Args:
231 achievementId: string, The ID of the achievement used by this method. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700232 x__xgafv: string, V1 error format.
233 Allowed values
234 1 - v1 error format
235 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400236
237Returns:
238 An object of the form:
239
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700240 { # An achievement unlock response
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800241 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUnlockResponse`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800242 &quot;newlyUnlocked&quot;: True or False, # Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
John Asmuth614db982014-04-24 15:46:26 -0400243 }</pre>
244</div>
245
246<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700247 <code class="details" id="updateMultiple">updateMultiple(body=None, x__xgafv=None)</code>
John Asmuth614db982014-04-24 15:46:26 -0400248 <pre>Updates multiple achievements for the currently authenticated player.
249
250Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700251 body: object, The request body.
John Asmuth614db982014-04-24 15:46:26 -0400252 The object takes the form of:
253
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700254{ # A list of achievement update requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700255 &quot;updates&quot;: [ # The individual achievement update requests.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700256 { # A request to update an achievement.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800257 &quot;setStepsAtLeastPayload&quot;: { # The payload to request to increment an achievement. # The payload if an update of type `SET_STEPS_AT_LEAST` was requested for the achievement.
258 &quot;steps&quot;: 42, # The minimum number of steps for the achievement to be set to.
259 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#GamesAchievementSetStepsAtLeast`.
260 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800261 &quot;achievementId&quot;: &quot;A String&quot;, # The achievement this update is being applied to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800262 &quot;incrementPayload&quot;: { # The payload to request to increment an achievement. # The payload if an update of type `INCREMENT` was requested for the achievement.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800263 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#GamesAchievementIncrement`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800264 &quot;steps&quot;: 42, # The number of steps to be incremented.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800265 &quot;requestId&quot;: &quot;A String&quot;, # The requestId associated with an increment to an achievement.
266 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800267 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUpdateRequest`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800268 &quot;updateType&quot;: &quot;A String&quot;, # The type of update being applied.
John Asmuth614db982014-04-24 15:46:26 -0400269 },
270 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800271 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUpdateMultipleRequest`.
John Asmuth614db982014-04-24 15:46:26 -0400272 }
273
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700274 x__xgafv: string, V1 error format.
275 Allowed values
276 1 - v1 error format
277 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400278
279Returns:
280 An object of the form:
281
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700282 { # Response message for UpdateMultipleAchievements rpc.
Bu Sun Kim65020912020-05-20 12:08:20 -0700283 &quot;updatedAchievements&quot;: [ # The updated state of the achievements.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700284 { # An updated achievement.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800285 &quot;updateOccurred&quot;: True or False, # Whether the requested updates actually affected the achievement.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800286 &quot;achievementId&quot;: &quot;A String&quot;, # The achievement this update is was applied to.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800287 &quot;newlyUnlocked&quot;: True or False, # Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
288 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUpdateResponse`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800289 &quot;currentSteps&quot;: 42, # The current steps recorded for this achievement if it is incremental.
290 &quot;currentState&quot;: &quot;A String&quot;, # The current state of the achievement.
John Asmuth614db982014-04-24 15:46:26 -0400291 },
292 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string `games#achievementUpdateMultipleResponse`.
John Asmuth614db982014-04-24 15:46:26 -0400294 }</pre>
295</div>
296
297</body></html>