get method

Future<Seriesmembership> get(
  1. String seriesId, {
  2. int? pageSize,
  3. String? pageToken,
  4. String? $fields,
})

Returns Series membership data given the series id.

Request parameters:

seriesId - String that identifies the series

pageSize - Number of maximum results per page to be included in the response.

pageToken - The value of the nextToken from the previous page.

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

Completes with a Seriesmembership.

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<Seriesmembership> get(
  core.String seriesId, {
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'series_id': [seriesId],
    if (pageSize != null) 'page_size': ['${pageSize}'],
    if (pageToken != null) 'page_token': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'books/v1/series/membership/get';

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