| John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [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 |  | 
 | 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 |  | 
 | 88 | Args: | 
| Craig Citro | e633be1 | 2015-03-02 13:40:36 -0800 | [diff] [blame] | 89 |   applicationId: string, The application ID from the Google Play developer console. (required) | 
| John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 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 |  | 
 | 97 | Returns: | 
 | 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. | 
| Craig Citro | 0e5b9bf | 2014-10-15 10:26:14 -0700 | [diff] [blame] | 110 |     "themeColor": "A String", # 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. "E0E0E0"). | 
| John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 111 |     "name": "A String", # The name of the application. | 
 | 112 |     "instances": [ # The instances of the application. | 
 | 113 |       { # This is a JSON template for the Instance resource. | 
 | 114 |         "kind": "games#instance", # Uniquely identifies the type of this resource. Value is always the fixed string games#instance. | 
 | 115 |         "acquisitionUri": "A String", # URI which shows where a user can acquire this instance. | 
 | 116 |         "name": "A String", # Localized display name. | 
 | 117 |         "turnBasedPlay": True or False, # Flag to show if this game instance supports turn based play. | 
 | 118 |         "webInstance": { # This is a JSON template for the Web details resource. # Platform dependent details for Web. | 
 | 119 |           "kind": "games#instanceWebDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceWebDetails. | 
 | 120 |           "launchUrl": "A String", # Launch URL for the game. | 
 | 121 |           "preferred": True or False, # Indicates that this instance is the default for new installations. | 
 | 122 |         }, | 
 | 123 |         "androidInstance": { # This is a JSON template for the Android instance details resource. # Platform dependent details for Android. | 
 | 124 |           "kind": "games#instanceAndroidDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceAndroidDetails. | 
 | 125 |           "enablePiracyCheck": True or False, # Flag indicating whether the anti-piracy check is enabled. | 
 | 126 |           "packageName": "A String", # Android package name which maps to Google Play URL. | 
 | 127 |           "preferred": True or False, # Indicates that this instance is the default for new installations. | 
 | 128 |         }, | 
 | 129 |         "iosInstance": { # This is a JSON template for the iOS details resource. # Platform dependent details for iOS. | 
 | 130 |           "kind": "games#instanceIosDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceIosDetails. | 
 | 131 |           "supportIphone": True or False, # Flag to indicate if this instance supports iPhone. | 
 | 132 |           "preferredForIpad": True or False, # Indicates that this instance is the default for new installations on iPad devices. | 
 | 133 |           "itunesAppId": "A String", # iTunes App ID. | 
 | 134 |           "bundleIdentifier": "A String", # Bundle identifier. | 
 | 135 |           "supportIpad": True or False, # Flag to indicate if this instance supports iPad. | 
 | 136 |           "preferredForIphone": True or False, # Indicates that this instance is the default for new installations on iPhone devices. | 
 | 137 |         }, | 
 | 138 |         "platformType": "A String", # The platform type. | 
 | 139 |             # Possible values are: | 
 | 140 |             # - "ANDROID" - Instance is for Android. | 
 | 141 |             # - "IOS" - Instance is for iOS | 
 | 142 |             # - "WEB_APP" - Instance is for Web App. | 
 | 143 |         "realtimePlay": True or False, # Flag to show if this game instance supports realtime play. | 
 | 144 |       }, | 
 | 145 |     ], | 
 | 146 |     "achievement_count": 42, # The number of achievements visible to the currently authenticated player. | 
 | 147 |     "leaderboard_count": 42, # The number of leaderboards visible to the currently authenticated player. | 
| John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 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 |     ], | 
| Craig Citro | 065b530 | 2014-08-14 00:47:23 -0700 | [diff] [blame] | 157 |     "id": "A String", # The ID of the application. | 
 | 158 |     "enabledFeatures": [ # A list of features that have been enabled for the application. | 
 | 159 |         # Possible values are: | 
 | 160 |         # - "SNAPSHOTS" - Snapshots has been enabled | 
 | 161 |       "A String", | 
 | 162 |     ], | 
| John Asmuth | 614db98 | 2014-04-24 15:46:26 -0400 | [diff] [blame] | 163 |   }</pre> | 
 | 164 | </div> | 
 | 165 |  | 
 | 166 | <div class="method"> | 
 | 167 |     <code class="details" id="played">played()</code> | 
 | 168 |   <pre>Indicate that the the currently authenticated user is playing your application. | 
 | 169 |  | 
 | 170 | Args: | 
 | 171 | </pre> | 
 | 172 | </div> | 
 | 173 |  | 
 | 174 | </body></html> |