blob: b83c21a45b23b0f9d08e6c7a5bdcea8cffc825d3 [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.applications.html">applications</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(applicationId, platformType=None, language=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Retrieves the metadata of the application with the given ID. If the</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="#played">played(x__xgafv=None)</a></code></p>
82<p class="firstline">Indicate that the currently authenticated user is playing your</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070084 <code><a href="#verify">verify(applicationId, x__xgafv=None)</a></code></p>
85<p class="firstline">Verifies the auth token provided with this request is for the application</p>
John Asmuth614db982014-04-24 15:46:26 -040086<h3>Method Details</h3>
87<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070088 <code class="details" id="get">get(applicationId, platformType=None, language=None, x__xgafv=None)</code>
89 <pre>Retrieves the metadata of the application with the given ID. If the
90requested application is not available for the specified
91`platformType`, the returned response will not include any
92instance data.
John Asmuth614db982014-04-24 15:46:26 -040093
94Args:
Craig Citroe633be12015-03-02 13:40:36 -080095 applicationId: string, The application ID from the Google Play developer console. (required)
John Asmuth614db982014-04-24 15:46:26 -040096 platformType: string, Restrict application details returned to the specific platform.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070097 language: string, The preferred language to use for strings returned by this method.
98 x__xgafv: string, V1 error format.
John Asmuth614db982014-04-24 15:46:26 -040099 Allowed values
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700100 1 - v1 error format
101 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400102
103Returns:
104 An object of the form:
105
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700106 { # The Application resource.
107 &quot;themeColor&quot;: &quot;A String&quot;, # A hint to the client UI for what color to use as an app-themed color. The
108 # color is given as an RGB triplet (e.g. &quot;E0E0E0&quot;).
109 &quot;category&quot;: { # An application category object. # The category of the application.
110 &quot;secondary&quot;: &quot;A String&quot;, # The secondary category.
111 &quot;primary&quot;: &quot;A String&quot;, # The primary category.
112 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
113 # string `games#applicationCategory`.
114 },
115 &quot;leaderboard_count&quot;: 42, # The number of leaderboards visible to the currently authenticated player.
116 &quot;name&quot;: &quot;A String&quot;, # The name of the application.
117 &quot;description&quot;: &quot;A String&quot;, # The description of the application.
118 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
119 # string `games#application`.
120 &quot;id&quot;: &quot;A String&quot;, # The ID of the application.
121 &quot;author&quot;: &quot;A String&quot;, # The author of the application.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;achievement_count&quot;: 42, # The number of achievements visible to the currently authenticated player.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700123 &quot;instances&quot;: [ # The instances of the application.
124 { # The Instance resource.
125 &quot;platformType&quot;: &quot;A String&quot;, # The platform type.
126 &quot;webInstance&quot;: { # The Web details resource. # Platform dependent details for Web.
127 &quot;preferred&quot;: True or False, # Indicates that this instance is the default for new installations.
128 &quot;launchUrl&quot;: &quot;A String&quot;, # Launch URL for the game.
129 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
130 # string `games#instanceWebDetails`.
131 },
132 &quot;realtimePlay&quot;: True or False, # Flag to show if this game instance supports realtime play.
133 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
134 # string `games#instance`.
135 &quot;androidInstance&quot;: { # The Android instance details resource. # Platform dependent details for Android.
136 &quot;enablePiracyCheck&quot;: True or False, # Flag indicating whether the anti-piracy check is enabled.
137 &quot;packageName&quot;: &quot;A String&quot;, # Android package name which maps to Google Play URL.
138 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
139 # string `games#instanceAndroidDetails`.
140 &quot;preferred&quot;: True or False, # Indicates that this instance is the default for new installations.
141 },
142 &quot;acquisitionUri&quot;: &quot;A String&quot;, # URI which shows where a user can acquire this instance.
143 &quot;name&quot;: &quot;A String&quot;, # Localized display name.
144 &quot;turnBasedPlay&quot;: True or False, # Flag to show if this game instance supports turn based play.
145 &quot;iosInstance&quot;: { # The iOS details resource. # Platform dependent details for iOS.
146 &quot;preferredForIpad&quot;: True or False, # Indicates that this instance is the default for new installations on iPad
147 # devices.
148 &quot;bundleIdentifier&quot;: &quot;A String&quot;, # Bundle identifier.
149 &quot;itunesAppId&quot;: &quot;A String&quot;, # iTunes App ID.
150 &quot;preferredForIphone&quot;: True or False, # Indicates that this instance is the default for new installations on iPhone
151 # devices.
152 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
153 # string `games#instanceIosDetails`.
154 &quot;supportIphone&quot;: True or False, # Flag to indicate if this instance supports iPhone.
155 &quot;supportIpad&quot;: True or False, # Flag to indicate if this instance supports iPad.
156 },
157 },
158 ],
159 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # The last updated timestamp of the application.
Bu Sun Kim65020912020-05-20 12:08:20 -0700160 &quot;assets&quot;: [ # The assets of the application.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700161 { # An image asset object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 &quot;name&quot;: &quot;A String&quot;, # The name of the asset.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700163 &quot;height&quot;: 42, # The height of the asset.
164 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
165 # string `games#imageAsset`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700166 &quot;url&quot;: &quot;A String&quot;, # The URL of the asset.
167 &quot;width&quot;: 42, # The width of the asset.
John Asmuth614db982014-04-24 15:46:26 -0400168 },
169 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700170 &quot;enabledFeatures&quot;: [ # A list of features that have been enabled for the application.
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;A String&quot;,
Craig Citro065b5302014-08-14 00:47:23 -0700172 ],
John Asmuth614db982014-04-24 15:46:26 -0400173 }</pre>
174</div>
175
176<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700177 <code class="details" id="played">played(x__xgafv=None)</code>
178 <pre>Indicate that the currently authenticated user is playing your
179application.
John Asmuth614db982014-04-24 15:46:26 -0400180
181Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700182 x__xgafv: string, V1 error format.
183 Allowed values
184 1 - v1 error format
185 2 - v2 error format
John Asmuth614db982014-04-24 15:46:26 -0400186</pre>
187</div>
188
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800189<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700190 <code class="details" id="verify">verify(applicationId, x__xgafv=None)</code>
191 <pre>Verifies the auth token provided with this request is for the application
192with the specified ID, and returns the ID of the player it was granted for.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800193
194Args:
195 applicationId: string, The application ID from the Google Play developer console. (required)
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700196 x__xgafv: string, V1 error format.
197 Allowed values
198 1 - v1 error format
199 2 - v2 error format
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800200
201Returns:
202 An object of the form:
203
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700204 { # A third party application verification response resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;player_id&quot;: &quot;A String&quot;, # The ID of the player that was issued the auth token used in this request.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700206 &quot;kind&quot;: &quot;A String&quot;, # Uniquely identifies the type of this resource. Value is always the fixed
207 # string `games#applicationVerifyResponse`.
208 &quot;alternate_player_id&quot;: &quot;A String&quot;, # An alternate ID that was once used for the player that was issued the auth
209 # token used in this request. (This field is not normally populated.)
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800210 }</pre>
211</div>
212
John Asmuth614db982014-04-24 15:46:26 -0400213</body></html>