blob: 1d01448951564151af727df978354ed8d11a6c97 [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
75<h1><a href="games_v1.html">Google Play Game Services API</a> . <a href="games_v1.applications.html">applications</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070078 <code><a href="#get">get(applicationId, language=None, platformType=None)</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040079<p class="firstline">Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#played">played()</a></code></p>
John Asmuth614db982014-04-24 15:46:26 -040082<p class="firstline">Indicate that the the currently authenticated user is playing your application.</p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080083<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084 <code><a href="#verify">verify(applicationId)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="firstline">Verifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.</p>
John Asmuth614db982014-04-24 15:46:26 -040086<h3>Method Details</h3>
87<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070088 <code class="details" id="get">get(applicationId, language=None, platformType=None)</code>
John Asmuth614db982014-04-24 15:46:26 -040089 <pre>Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.
90
91Args:
Craig Citroe633be12015-03-02 13:40:36 -080092 applicationId: string, The application ID from the Google Play developer console. (required)
John Asmuth614db982014-04-24 15:46:26 -040093 language: string, The preferred language to use for strings returned by this method.
94 platformType: string, Restrict application details returned to the specific platform.
95 Allowed values
96 ANDROID - Retrieve applications that can be played on Android.
97 IOS - Retrieve applications that can be played on iOS.
98 WEB_APP - Retrieve applications that can be played on desktop web.
99
100Returns:
101 An object of the form:
102
103 { # This is a JSON template for the Application resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700104 &quot;achievement_count&quot;: 42, # The number of achievements visible to the currently authenticated player.
105 &quot;assets&quot;: [ # The assets of the application.
John Asmuth614db982014-04-24 15:46:26 -0400106 { # This is a JSON template for an image asset object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700107 &quot;height&quot;: 42, # The height of the asset.
108 &quot;kind&quot;: &quot;games#imageAsset&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#imageAsset.
109 &quot;name&quot;: &quot;A String&quot;, # The name of the asset.
110 &quot;url&quot;: &quot;A String&quot;, # The URL of the asset.
111 &quot;width&quot;: 42, # The width of the asset.
John Asmuth614db982014-04-24 15:46:26 -0400112 },
113 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700114 &quot;author&quot;: &quot;A String&quot;, # The author of the application.
115 &quot;category&quot;: { # This is a JSON template for an application category object. # The category of the application.
116 &quot;kind&quot;: &quot;games#applicationCategory&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#applicationCategory.
117 &quot;primary&quot;: &quot;A String&quot;, # The primary category.
118 &quot;secondary&quot;: &quot;A String&quot;, # The secondary category.
119 },
120 &quot;description&quot;: &quot;A String&quot;, # The description of the application.
121 &quot;enabledFeatures&quot;: [ # A list of features that have been enabled for the application.
Craig Citro065b5302014-08-14 00:47:23 -0700122 # Possible values are:
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 # - &quot;SNAPSHOTS&quot; - Snapshots has been enabled
124 &quot;A String&quot;,
Craig Citro065b5302014-08-14 00:47:23 -0700125 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;id&quot;: &quot;A String&quot;, # The ID of the application.
127 &quot;instances&quot;: [ # The instances of the application.
128 { # This is a JSON template for the Instance resource.
129 &quot;acquisitionUri&quot;: &quot;A String&quot;, # URI which shows where a user can acquire this instance.
130 &quot;androidInstance&quot;: { # This is a JSON template for the Android instance details resource. # Platform dependent details for Android.
131 &quot;enablePiracyCheck&quot;: True or False, # Flag indicating whether the anti-piracy check is enabled.
132 &quot;kind&quot;: &quot;games#instanceAndroidDetails&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceAndroidDetails.
133 &quot;packageName&quot;: &quot;A String&quot;, # Android package name which maps to Google Play URL.
134 &quot;preferred&quot;: True or False, # Indicates that this instance is the default for new installations.
135 },
136 &quot;iosInstance&quot;: { # This is a JSON template for the iOS details resource. # Platform dependent details for iOS.
137 &quot;bundleIdentifier&quot;: &quot;A String&quot;, # Bundle identifier.
138 &quot;itunesAppId&quot;: &quot;A String&quot;, # iTunes App ID.
139 &quot;kind&quot;: &quot;games#instanceIosDetails&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceIosDetails.
140 &quot;preferredForIpad&quot;: True or False, # Indicates that this instance is the default for new installations on iPad devices.
141 &quot;preferredForIphone&quot;: True or False, # Indicates that this instance is the default for new installations on iPhone devices.
142 &quot;supportIpad&quot;: True or False, # Flag to indicate if this instance supports iPad.
143 &quot;supportIphone&quot;: True or False, # Flag to indicate if this instance supports iPhone.
144 },
145 &quot;kind&quot;: &quot;games#instance&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#instance.
146 &quot;name&quot;: &quot;A String&quot;, # Localized display name.
147 &quot;platformType&quot;: &quot;A String&quot;, # The platform type.
148 # Possible values are:
149 # - &quot;ANDROID&quot; - Instance is for Android.
150 # - &quot;IOS&quot; - Instance is for iOS
151 # - &quot;WEB_APP&quot; - Instance is for Web App.
152 &quot;realtimePlay&quot;: True or False, # Flag to show if this game instance supports realtime play.
153 &quot;turnBasedPlay&quot;: True or False, # Flag to show if this game instance supports turn based play.
154 &quot;webInstance&quot;: { # This is a JSON template for the Web details resource. # Platform dependent details for Web.
155 &quot;kind&quot;: &quot;games#instanceWebDetails&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceWebDetails.
156 &quot;launchUrl&quot;: &quot;A String&quot;, # Launch URL for the game.
157 &quot;preferred&quot;: True or False, # Indicates that this instance is the default for new installations.
158 },
159 },
160 ],
161 &quot;kind&quot;: &quot;games#application&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#application.
162 &quot;lastUpdatedTimestamp&quot;: &quot;A String&quot;, # The last updated timestamp of the application.
163 &quot;leaderboard_count&quot;: 42, # The number of leaderboards visible to the currently authenticated player.
164 &quot;name&quot;: &quot;A String&quot;, # The name of the application.
165 &quot;themeColor&quot;: &quot;A String&quot;, # A hint to the client UI for what color to use as an app-themed color. The color is given as an RGB triplet (e.g. &quot;E0E0E0&quot;).
John Asmuth614db982014-04-24 15:46:26 -0400166 }</pre>
167</div>
168
169<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 <code class="details" id="played">played()</code>
John Asmuth614db982014-04-24 15:46:26 -0400171 <pre>Indicate that the the currently authenticated user is playing your application.
172
173Args:
174</pre>
175</div>
176
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800177<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700178 <code class="details" id="verify">verify(applicationId)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800179 <pre>Verifies the auth token provided with this request is for the application with the specified ID, and returns the ID of the player it was granted for.
180
181Args:
182 applicationId: string, The application ID from the Google Play developer console. (required)
183
184Returns:
185 An object of the form:
186
187 { # This is a JSON template for a third party application verification response resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;alternate_player_id&quot;: &quot;A String&quot;, # An alternate ID that was once used for the player that was issued the auth token used in this request. (This field is not normally populated.)
189 &quot;kind&quot;: &quot;games#applicationVerifyResponse&quot;, # Uniquely identifies the type of this resource. Value is always the fixed string games#applicationVerifyResponse.
190 &quot;player_id&quot;: &quot;A String&quot;, # The ID of the player that was issued the auth token used in this request.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800191 }</pre>
192</div>
193
John Asmuth614db982014-04-24 15:46:26 -0400194</body></html>