blob: 5ae1305ab0144db2b9e3ffa65c1dff5453458c21 [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">
78 <code><a href="#get">get(applicationId, language=None, platformType=None)</a></code></p>
79<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">
81 <code><a href="#played">played()</a></code></p>
82<p class="firstline">Indicate that the the currently authenticated user is playing your application.</p>
83<h3>Method Details</h3>
84<div class="method">
85 <code class="details" id="get">get(applicationId, language=None, platformType=None)</code>
86 <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.
87
88Args:
89 applicationId: string, The application being requested. (required)
90 language: string, The preferred language to use for strings returned by this method.
91 platformType: string, Restrict application details returned to the specific platform.
92 Allowed values
93 ANDROID - Retrieve applications that can be played on Android.
94 IOS - Retrieve applications that can be played on iOS.
95 WEB_APP - Retrieve applications that can be played on desktop web.
96
97Returns:
98 An object of the form:
99
100 { # This is a JSON template for the Application resource.
101 "category": { # This is a JSON template for an application category object. # The category of the application.
102 "kind": "games#applicationCategory", # Uniquely identifies the type of this resource. Value is always the fixed string games#applicationCategory.
103 "primary": "A String", # The primary category.
104 "secondary": "A String", # The secondary category.
105 },
106 "kind": "games#application", # Uniquely identifies the type of this resource. Value is always the fixed string games#application.
107 "description": "A String", # The description of the application.
108 "author": "A String", # The author of the application.
109 "lastUpdatedTimestamp": "A String", # The last updated timestamp of the application.
110 "name": "A String", # The name of the application.
111 "instances": [ # The instances of the application.
112 { # This is a JSON template for the Instance resource.
113 "kind": "games#instance", # Uniquely identifies the type of this resource. Value is always the fixed string games#instance.
114 "acquisitionUri": "A String", # URI which shows where a user can acquire this instance.
115 "name": "A String", # Localized display name.
116 "turnBasedPlay": True or False, # Flag to show if this game instance supports turn based play.
117 "webInstance": { # This is a JSON template for the Web details resource. # Platform dependent details for Web.
118 "kind": "games#instanceWebDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceWebDetails.
119 "launchUrl": "A String", # Launch URL for the game.
120 "preferred": True or False, # Indicates that this instance is the default for new installations.
121 },
122 "androidInstance": { # This is a JSON template for the Android instance details resource. # Platform dependent details for Android.
123 "kind": "games#instanceAndroidDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceAndroidDetails.
124 "enablePiracyCheck": True or False, # Flag indicating whether the anti-piracy check is enabled.
125 "packageName": "A String", # Android package name which maps to Google Play URL.
126 "preferred": True or False, # Indicates that this instance is the default for new installations.
127 },
128 "iosInstance": { # This is a JSON template for the iOS details resource. # Platform dependent details for iOS.
129 "kind": "games#instanceIosDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceIosDetails.
130 "supportIphone": True or False, # Flag to indicate if this instance supports iPhone.
131 "preferredForIpad": True or False, # Indicates that this instance is the default for new installations on iPad devices.
132 "itunesAppId": "A String", # iTunes App ID.
133 "bundleIdentifier": "A String", # Bundle identifier.
134 "supportIpad": True or False, # Flag to indicate if this instance supports iPad.
135 "preferredForIphone": True or False, # Indicates that this instance is the default for new installations on iPhone devices.
136 },
137 "platformType": "A String", # The platform type.
138 # Possible values are:
139 # - "ANDROID" - Instance is for Android.
140 # - "IOS" - Instance is for iOS
141 # - "WEB_APP" - Instance is for Web App.
142 "realtimePlay": True or False, # Flag to show if this game instance supports realtime play.
143 },
144 ],
145 "achievement_count": 42, # The number of achievements visible to the currently authenticated player.
146 "leaderboard_count": 42, # The number of leaderboards visible to the currently authenticated player.
147 "id": "A String", # The ID of the application.
148 "assets": [ # The assets of the application.
149 { # This is a JSON template for an image asset object.
150 "url": "A String", # The URL of the asset.
151 "width": 42, # The width of the asset.
152 "kind": "games#imageAsset", # Uniquely identifies the type of this resource. Value is always the fixed string games#imageAsset.
153 "name": "A String", # The name of the asset.
154 "height": 42, # The height of the asset.
155 },
156 ],
157 }</pre>
158</div>
159
160<div class="method">
161 <code class="details" id="played">played()</code>
162 <pre>Indicate that the the currently authenticated user is playing your application.
163
164Args:
165</pre>
166</div>
167
168</body></html>