getAuthors method

Future<AuthorQueryResult> getAuthors(
  1. String query, {
  2. int page = 1,
  3. int pageSize = 20,
})

Search authors in the ISBNdb

Implementation

Future<AuthorQueryResult> getAuthors(
  String query, {
  int page = 1,
  int pageSize = 20,
}) async {
  final response = await _get(
    "authors/$query",
    queryParameters: <String, Object?>{
      "page": page,
      "pageSize": pageSize,
    },
  );
  return AuthorQueryResult.fromJson(response);
}