list method
Lists a user's installed apps.
Request parameters:
appFilterExtensions
- A comma-separated list of file extensions for open
with filtering. All apps within the given app query scope which can open
any of the given file extensions will be included in the response. If
appFilterMimeTypes
are provided as well, the result is a union of the
two resulting app lists.
appFilterMimeTypes
- A comma-separated list of MIME types for open with
filtering. All apps within the given app query scope which can open any of
the given MIME types will be included in the response. If
appFilterExtensions
are provided as well, the result is a union of the
two resulting app lists.
languageCode
- A language or locale code, as defined by BCP 47, with
some extensions from Unicode's LDML format
(http://www.unicode.org/reports/tr35/).
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a AppList.
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<AppList> list({
core.String? appFilterExtensions,
core.String? appFilterMimeTypes,
core.String? languageCode,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (appFilterExtensions != null)
'appFilterExtensions': [appFilterExtensions],
if (appFilterMimeTypes != null)
'appFilterMimeTypes': [appFilterMimeTypes],
if (languageCode != null) 'languageCode': [languageCode],
if ($fields != null) 'fields': [$fields],
};
const url_ = 'apps';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return AppList.fromJson(response_ as core.Map<core.String, core.dynamic>);
}