Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 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 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 75 | <h1><a href="games_v1.html">Google Play Game Services</a> . <a href="games_v1.events.html">events</a></h1> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 78 | <code><a href="#listByPlayer">listByPlayer(pageToken=None, language=None, maxResults=None, x__xgafv=None)</a></code></p> |
| 79 | <p class="firstline">Returns a list showing the current progress on events in this application</p> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
| 81 | <code><a href="#listByPlayer_next">listByPlayer_next(previous_request, previous_response)</a></code></p> |
| 82 | <p class="firstline">Retrieves the next page of results.</p> |
| 83 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 84 | <code><a href="#listDefinitions">listDefinitions(maxResults=None, pageToken=None, language=None, x__xgafv=None)</a></code></p> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 85 | <p class="firstline">Returns a list of the event definitions in this application.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#listDefinitions_next">listDefinitions_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 Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 90 | <code><a href="#record">record(body=None, language=None, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Records a batch of changes to the number of times events have occurred for</p> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 92 | <h3>Method Details</h3> |
| 93 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 94 | <code class="details" id="listByPlayer">listByPlayer(pageToken=None, language=None, maxResults=None, x__xgafv=None)</code> |
| 95 | <pre>Returns a list showing the current progress on events in this application |
| 96 | for the currently authenticated user. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 97 | |
| 98 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 99 | pageToken: string, The token returned by the previous request. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 100 | language: string, The preferred language to use for strings returned by this method. |
| 101 | maxResults: integer, The maximum number of events to return in the response, used for paging. |
| 102 | For any response, the actual number of events to return may be less than |
| 103 | the specified maxResults. |
| 104 | x__xgafv: string, V1 error format. |
| 105 | Allowed values |
| 106 | 1 - v1 error format |
| 107 | 2 - v2 error format |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 108 | |
| 109 | Returns: |
| 110 | An object of the form: |
| 111 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 112 | { # A ListByPlayer response. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 113 | "items": [ # The player events. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 114 | { # An event status resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 115 | "playerId": "A String", # The ID of the player. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 116 | "definitionId": "A String", # The ID of the event definition. |
| 117 | "numEvents": "A String", # The current number of times this event has occurred. |
| 118 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 119 | # string `games#playerEvent`. |
| 120 | "formattedNumEvents": "A String", # The current number of times this event has occurred, as a string. The |
| 121 | # formatting of this string depends on the configuration of your event in the |
| 122 | # Play Games Developer Console. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 123 | }, |
| 124 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 125 | "nextPageToken": "A String", # The pagination token for the next page of results. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 126 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 127 | # string `games#playerEventListResponse`. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 128 | }</pre> |
| 129 | </div> |
| 130 | |
| 131 | <div class="method"> |
| 132 | <code class="details" id="listByPlayer_next">listByPlayer_next(previous_request, previous_response)</code> |
| 133 | <pre>Retrieves the next page of results. |
| 134 | |
| 135 | Args: |
| 136 | previous_request: The request for the previous page. (required) |
| 137 | previous_response: The response from the request for the previous page. (required) |
| 138 | |
| 139 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 140 | A request object that you can call 'execute()' on to request the next |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 141 | page. Returns None if there are no more items in the collection. |
| 142 | </pre> |
| 143 | </div> |
| 144 | |
| 145 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 146 | <code class="details" id="listDefinitions">listDefinitions(maxResults=None, pageToken=None, language=None, x__xgafv=None)</code> |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 147 | <pre>Returns a list of the event definitions in this application. |
| 148 | |
| 149 | Args: |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 150 | maxResults: integer, The maximum number of event definitions to return in the response, used for |
| 151 | paging. For any response, the actual number of event definitions to return |
| 152 | may be less than the specified `maxResults`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 153 | pageToken: string, The token returned by the previous request. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 154 | language: string, The preferred language to use for strings returned by this method. |
| 155 | x__xgafv: string, V1 error format. |
| 156 | Allowed values |
| 157 | 1 - v1 error format |
| 158 | 2 - v2 error format |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 159 | |
| 160 | Returns: |
| 161 | An object of the form: |
| 162 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 163 | { # A ListDefinitions response. |
| 164 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 165 | # string `games#eventDefinitionListResponse`. |
| 166 | "nextPageToken": "A String", # The pagination token for the next page of results. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 167 | "items": [ # The event definitions. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 168 | { # An event definition resource. |
| 169 | "imageUrl": "A String", # The base URL for the image that represents the event. |
| 170 | "isDefaultImageUrl": True or False, # Indicates whether the icon image being returned is a default image, or is |
| 171 | # game-provided. |
| 172 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 173 | # string `games#eventDefinition`. |
| 174 | "description": "A String", # Description of what this event represents. |
| 175 | "id": "A String", # The ID of the event. |
| 176 | "visibility": "A String", # The visibility of event being tracked in this definition. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 177 | "childEvents": [ # A list of events that are a child of this event. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 178 | { # An event child relationship resource. |
| 179 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 180 | # string `games#eventChild`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 181 | "childId": "A String", # The ID of the child event. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 182 | }, |
| 183 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 184 | "displayName": "A String", # The name to display for the event. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 185 | }, |
| 186 | ], |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 187 | }</pre> |
| 188 | </div> |
| 189 | |
| 190 | <div class="method"> |
| 191 | <code class="details" id="listDefinitions_next">listDefinitions_next(previous_request, previous_response)</code> |
| 192 | <pre>Retrieves the next page of results. |
| 193 | |
| 194 | Args: |
| 195 | previous_request: The request for the previous page. (required) |
| 196 | previous_response: The response from the request for the previous page. (required) |
| 197 | |
| 198 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 199 | A request object that you can call 'execute()' on to request the next |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 200 | page. Returns None if there are no more items in the collection. |
| 201 | </pre> |
| 202 | </div> |
| 203 | |
| 204 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 205 | <code class="details" id="record">record(body=None, language=None, x__xgafv=None)</code> |
| 206 | <pre>Records a batch of changes to the number of times events have occurred for |
| 207 | the currently authenticated user of this application. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 208 | |
| 209 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 210 | body: object, The request body. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 211 | The object takes the form of: |
| 212 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 213 | { # An event period update resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 214 | "requestId": "A String", # The request ID used to identify this attempt to record events. |
| 215 | "timePeriods": [ # A list of the time period updates being made in this request. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 216 | { # An event period update resource. |
| 217 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 218 | # string `games#eventPeriodUpdate`. |
| 219 | "timePeriod": { # An event period time range. # The time period being covered by this update. |
| 220 | "periodStartMillis": "A String", # The time when this update period begins, in millis, since 1970 UTC (Unix |
| 221 | # Epoch). |
| 222 | "periodEndMillis": "A String", # The time when this update period ends, in millis, since 1970 UTC (Unix |
| 223 | # Epoch). |
| 224 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 225 | # string `games#eventPeriodRange`. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 226 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 227 | "updates": [ # The updates being made for this time period. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 228 | { # An event period update resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 229 | "updateCount": "A String", # The number of times this event occurred in this time period. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 230 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 231 | # string `games#eventUpdateRequest`. |
| 232 | "definitionId": "A String", # The ID of the event being modified in this update. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 233 | }, |
| 234 | ], |
| 235 | }, |
| 236 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 237 | "currentTimeMillis": "A String", # The current time when this update was sent, in milliseconds, since 1970 UTC |
| 238 | # (Unix Epoch). |
| 239 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 240 | # string `games#eventRecordRequest`. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 241 | } |
| 242 | |
| 243 | language: string, The preferred language to use for strings returned by this method. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 244 | x__xgafv: string, V1 error format. |
| 245 | Allowed values |
| 246 | 1 - v1 error format |
| 247 | 2 - v2 error format |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 248 | |
| 249 | Returns: |
| 250 | An object of the form: |
| 251 | |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 252 | { # An event period update resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 253 | "eventFailures": [ # Any failures updating a particular event. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 254 | { # An event update failure resource. |
| 255 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 256 | # string `games#eventRecordFailure`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 257 | "eventId": "A String", # The ID of the event that was not updated. |
| 258 | "failureCause": "A String", # The cause for the update failure. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 259 | }, |
| 260 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 261 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 262 | # string `games#eventUpdateResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 263 | "playerEvents": [ # The current status of any updated events |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 264 | { # An event status resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 265 | "playerId": "A String", # The ID of the player. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 266 | "definitionId": "A String", # The ID of the event definition. |
| 267 | "numEvents": "A String", # The current number of times this event has occurred. |
| 268 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 269 | # string `games#playerEvent`. |
| 270 | "formattedNumEvents": "A String", # The current number of times this event has occurred, as a string. The |
| 271 | # formatting of this string depends on the configuration of your event in the |
| 272 | # Play Games Developer Console. |
| 273 | }, |
| 274 | ], |
| 275 | "batchFailures": [ # Any batch-wide failures which occurred applying updates. |
| 276 | { # A batch update failure resource. |
| 277 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 278 | # string `games#eventBatchRecordFailure`. |
| 279 | "range": { # An event period time range. # The time range which was rejected; empty for a request-wide failure. |
| 280 | "periodStartMillis": "A String", # The time when this update period begins, in millis, since 1970 UTC (Unix |
| 281 | # Epoch). |
| 282 | "periodEndMillis": "A String", # The time when this update period ends, in millis, since 1970 UTC (Unix |
| 283 | # Epoch). |
| 284 | "kind": "A String", # Uniquely identifies the type of this resource. Value is always the fixed |
| 285 | # string `games#eventPeriodRange`. |
| 286 | }, |
| 287 | "failureCause": "A String", # The cause for the update failure. |
Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 288 | }, |
| 289 | ], |
| 290 | }</pre> |
| 291 | </div> |
| 292 | |
| 293 | </body></html> |