1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="games_v1.html">Google Play Game Services API</a> . <a href="games_v1.quests.html">quests</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#accept">accept(questId, language=None)</a></code></p> 79<p class="firstline">Indicates that the currently authorized user will participate in the quest.</p> 80<p class="toc_element"> 81 <code><a href="#list">list(playerId, language=None, pageToken=None, maxResults=None)</a></code></p> 82<p class="firstline">Get a list of quests for your application and the currently authenticated player.</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"> 88 <code class="details" id="accept">accept(questId, language=None)</code> 89 <pre>Indicates that the currently authorized user will participate in the quest. 90 91Args: 92 questId: string, The ID of the quest. (required) 93 language: string, The preferred language to use for strings returned by this method. 94 95Returns: 96 An object of the form: 97 98 { # This is a JSON template for a Quest resource. 99 "kind": "games#quest", # Uniquely identifies the type of this resource. Value is always the fixed string games#quest. 100 "milestones": [ # The quest milestones. 101 { # This is a JSON template for a Quest Milestone resource. 102 "state": "A String", # The current state of the milestone. 103 # Possible values are: 104 # - "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not yet been claimed. 105 # - "CLAIMED" - The milestone is complete and has been claimed. 106 # - "NOT_COMPLETED" - The milestone has not yet been completed. 107 # - "NOT_STARTED" - The milestone is for a quest that has not yet been accepted. 108 "kind": "games#questMilestone", # Uniquely identifies the type of this resource. Value is always the fixed string games#questMilestone. 109 "criteria": [ # The criteria of the milestone. 110 { # This is a JSON template for a Quest Criterion resource. 111 "eventId": "A String", # The ID of the event the criterion corresponds to. 112 "completionContribution": { # This is a JSON template for a Quest Criterion Contribution resource. # The total number of times the associated event must be incremented for the player to complete this quest. 113 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 114 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 115 "value": "A String", # The value of the contribution. 116 }, 117 "initialPlayerProgress": { # This is a JSON template for a Quest Criterion Contribution resource. # The value of the event associated with this quest at the time that the quest was accepted. This value may change if event increments that took place before the start of quest are uploaded after the quest starts. 118 # There will be no initialPlayerProgress until the player has accepted the quest. 119 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 120 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 121 "value": "A String", # The value of the contribution. 122 }, 123 "kind": "games#questCriterion", # Uniquely identifies the type of this resource. Value is always the fixed string games#questCriterion. 124 "currentContribution": { # This is a JSON template for a Quest Criterion Contribution resource. # The number of increments the player has made toward the completion count event increments required to complete the quest. This value will not exceed the completion contribution. 125 # There will be no currentContribution until the player has accepted the quest. 126 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 127 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 128 "value": "A String", # The value of the contribution. 129 }, 130 }, 131 ], 132 "id": "A String", # The milestone ID. 133 "completionRewardData": "A String", # The completion reward data of the milestone, represented as a Base64-encoded string. This is a developer-specified binary blob with size between 0 and 2 KB before encoding. 134 }, 135 ], 136 "description": "A String", # The description of the quest. 137 "endTimestampMillis": "A String", # The timestamp at which the quest ceases to be active in milliseconds since the epoch in UTC. 138 "bannerUrl": "A String", # The banner image URL for the quest. 139 "startTimestampMillis": "A String", # The timestamp at which the quest becomes active in milliseconds since the epoch in UTC. 140 "lastUpdatedTimestampMillis": "A String", # The timestamp at which the quest was last updated by the user in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. 141 "acceptedTimestampMillis": "A String", # The timestamp at which the user accepted the quest in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. 142 "iconUrl": "A String", # The icon image URL for the quest. 143 "notifyTimestampMillis": "A String", # The timestamp at which the user should be notified that the quest will end soon in milliseconds since the epoch in UTC. 144 "state": "A String", # The state of the quest. 145 # Possible values are: 146 # - "UPCOMING": The quest is upcoming. The user can see the quest, but cannot accept it until it is open. 147 # - "OPEN": The quest is currently open and may be accepted at this time. 148 # - "ACCEPTED": The user is currently participating in this quest. 149 # - "COMPLETED": The user has completed the quest. 150 # - "FAILED": The quest was attempted but was not completed before the deadline expired. 151 # - "EXPIRED": The quest has expired and was not accepted. 152 # - "DELETED": The quest should be deleted from the local database. 153 "isDefaultBannerUrl": True or False, # Indicates whether the banner image being returned is a default image, or is game-provided. 154 "isDefaultIconUrl": True or False, # Indicates whether the icon image being returned is a default image, or is game-provided. 155 "applicationId": "A String", # The ID of the application this quest is part of. 156 "id": "A String", # The ID of the quest. 157 "name": "A String", # The name of the quest. 158 }</pre> 159</div> 160 161<div class="method"> 162 <code class="details" id="list">list(playerId, language=None, pageToken=None, maxResults=None)</code> 163 <pre>Get a list of quests for your application and the currently authenticated player. 164 165Args: 166 playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required) 167 language: string, The preferred language to use for strings returned by this method. 168 pageToken: string, The token returned by the previous request. 169 maxResults: integer, The maximum number of quest resources to return in the response, used for paging. For any response, the actual number of quest resources returned may be less than the specified maxResults. Acceptable values are 1 to 50, inclusive. (Default: 50). 170 171Returns: 172 An object of the form: 173 174 { # This is a JSON template for a list of quest objects. 175 "nextPageToken": "A String", # Token corresponding to the next page of results. 176 "items": [ # The quests. 177 { # This is a JSON template for a Quest resource. 178 "kind": "games#quest", # Uniquely identifies the type of this resource. Value is always the fixed string games#quest. 179 "milestones": [ # The quest milestones. 180 { # This is a JSON template for a Quest Milestone resource. 181 "state": "A String", # The current state of the milestone. 182 # Possible values are: 183 # - "COMPLETED_NOT_CLAIMED" - The milestone is complete, but has not yet been claimed. 184 # - "CLAIMED" - The milestone is complete and has been claimed. 185 # - "NOT_COMPLETED" - The milestone has not yet been completed. 186 # - "NOT_STARTED" - The milestone is for a quest that has not yet been accepted. 187 "kind": "games#questMilestone", # Uniquely identifies the type of this resource. Value is always the fixed string games#questMilestone. 188 "criteria": [ # The criteria of the milestone. 189 { # This is a JSON template for a Quest Criterion resource. 190 "eventId": "A String", # The ID of the event the criterion corresponds to. 191 "completionContribution": { # This is a JSON template for a Quest Criterion Contribution resource. # The total number of times the associated event must be incremented for the player to complete this quest. 192 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 193 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 194 "value": "A String", # The value of the contribution. 195 }, 196 "initialPlayerProgress": { # This is a JSON template for a Quest Criterion Contribution resource. # The value of the event associated with this quest at the time that the quest was accepted. This value may change if event increments that took place before the start of quest are uploaded after the quest starts. 197 # There will be no initialPlayerProgress until the player has accepted the quest. 198 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 199 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 200 "value": "A String", # The value of the contribution. 201 }, 202 "kind": "games#questCriterion", # Uniquely identifies the type of this resource. Value is always the fixed string games#questCriterion. 203 "currentContribution": { # This is a JSON template for a Quest Criterion Contribution resource. # The number of increments the player has made toward the completion count event increments required to complete the quest. This value will not exceed the completion contribution. 204 # There will be no currentContribution until the player has accepted the quest. 205 "formattedValue": "A String", # The formatted value of the contribution as a string. Format depends on the configuration for the associated event definition in the Play Games Developer Console. 206 "kind": "games#questContribution", # Uniquely identifies the type of this resource. Value is always the fixed string games#questContribution. 207 "value": "A String", # The value of the contribution. 208 }, 209 }, 210 ], 211 "id": "A String", # The milestone ID. 212 "completionRewardData": "A String", # The completion reward data of the milestone, represented as a Base64-encoded string. This is a developer-specified binary blob with size between 0 and 2 KB before encoding. 213 }, 214 ], 215 "description": "A String", # The description of the quest. 216 "endTimestampMillis": "A String", # The timestamp at which the quest ceases to be active in milliseconds since the epoch in UTC. 217 "bannerUrl": "A String", # The banner image URL for the quest. 218 "startTimestampMillis": "A String", # The timestamp at which the quest becomes active in milliseconds since the epoch in UTC. 219 "lastUpdatedTimestampMillis": "A String", # The timestamp at which the quest was last updated by the user in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. 220 "acceptedTimestampMillis": "A String", # The timestamp at which the user accepted the quest in milliseconds since the epoch in UTC. Only present if the player has accepted the quest. 221 "iconUrl": "A String", # The icon image URL for the quest. 222 "notifyTimestampMillis": "A String", # The timestamp at which the user should be notified that the quest will end soon in milliseconds since the epoch in UTC. 223 "state": "A String", # The state of the quest. 224 # Possible values are: 225 # - "UPCOMING": The quest is upcoming. The user can see the quest, but cannot accept it until it is open. 226 # - "OPEN": The quest is currently open and may be accepted at this time. 227 # - "ACCEPTED": The user is currently participating in this quest. 228 # - "COMPLETED": The user has completed the quest. 229 # - "FAILED": The quest was attempted but was not completed before the deadline expired. 230 # - "EXPIRED": The quest has expired and was not accepted. 231 # - "DELETED": The quest should be deleted from the local database. 232 "isDefaultBannerUrl": True or False, # Indicates whether the banner image being returned is a default image, or is game-provided. 233 "isDefaultIconUrl": True or False, # Indicates whether the icon image being returned is a default image, or is game-provided. 234 "applicationId": "A String", # The ID of the application this quest is part of. 235 "id": "A String", # The ID of the quest. 236 "name": "A String", # The name of the quest. 237 }, 238 ], 239 "kind": "games#questListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#questListResponse. 240 }</pre> 241</div> 242 243<div class="method"> 244 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 245 <pre>Retrieves the next page of results. 246 247Args: 248 previous_request: The request for the previous page. (required) 249 previous_response: The response from the request for the previous page. (required) 250 251Returns: 252 A request object that you can call 'execute()' on to request the next 253 page. Returns None if there are no more items in the collection. 254 </pre> 255</div> 256 257</body></html>