get method
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.
Request parameters:
applicationId
- The application ID from the Google Play developer
console.
language
- The preferred language to use for strings returned by this
method.
platformType
- Restrict application details returned to the specific
platform.
Possible string values are:
- "ANDROID" : Retrieve applications that can be played on Android.
- "IOS" : Retrieve applications that can be played on iOS.
- "WEB_APP" : Retrieve applications that can be played on desktop web.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a Application.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client
completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<Application> get(
core.String applicationId, {
core.String? language,
core.String? platformType,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (language != null) 'language': [language],
if (platformType != null) 'platformType': [platformType],
if ($fields != null) 'fields': [$fields],
};
final url_ =
'games/v1/applications/' + commons.escapeVariable('$applicationId');
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return Application.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}