list method

Future<ImagesListResponse> list(
  1. String packageName,
  2. String editId,
  3. String language,
  4. String imageType, {
  5. String? $fields,
})

Lists all images.

The response may be empty.

Request parameters:

packageName - Package name of the app.

editId - Identifier of the edit.

language - Language localization code (a BCP-47 language tag; for example, "de-AT" for Austrian German). There must be a store listing for the specified language.

imageType - Type of the Image. Providing an image type that refers to no images will return an empty response. Possible string values are:

  • "appImageTypeUnspecified" : Unspecified type. Do not use.
  • "phoneScreenshots" : Phone screenshot.
  • "sevenInchScreenshots" : Seven inch screenshot.
  • "tenInchScreenshots" : Ten inch screenshot.
  • "tvScreenshots" : TV screenshot.
  • "wearScreenshots" : Wear screenshot.
  • "icon" : Icon.
  • "featureGraphic" : Feature graphic.
  • "tvBanner" : TV banner.

$fields - Selector specifying which fields to include in a partial response.

Completes with a ImagesListResponse.

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<ImagesListResponse> list(
  core.String packageName,
  core.String editId,
  core.String language,
  core.String imageType, {
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'androidpublisher/v3/applications/' +
      commons.escapeVariable('$packageName') +
      '/edits/' +
      commons.escapeVariable('$editId') +
      '/listings/' +
      commons.escapeVariable('$language') +
      '/' +
      commons.escapeVariable('$imageType');

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ImagesListResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}