get method

Future<About> get({
  1. bool? includeSubscribed,
  2. String? maxChangeIdCount,
  3. String? startChangeId,
  4. String? $fields,
})

Gets the information about the current user along with Drive API settings

Request parameters:

includeSubscribed - Whether to count changes outside the My Drive hierarchy. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive will be omitted from the maxChangeIdCount.

maxChangeIdCount - Maximum number of remaining change IDs to count

startChangeId - Change ID to start counting from when calculating number of remaining change IDs

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

Completes with a About.

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<About> get({
  core.bool? includeSubscribed,
  core.String? maxChangeIdCount,
  core.String? startChangeId,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (includeSubscribed != null)
      'includeSubscribed': ['${includeSubscribed}'],
    if (maxChangeIdCount != null) 'maxChangeIdCount': [maxChangeIdCount],
    if (startChangeId != null) 'startChangeId': [startChangeId],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'about';

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