searchAuthor method
Endpoint used: GET /author/{id}
Search for an author by the author's name
and return limit
number of results (10 by default)
in an AuthorSearchResults
class instance.
Implementation
Future<AuthorSearchResults> searchAuthor(
String? name,
int? limit,
int? offset,
List<String>? ids,
List<String>? includes,
) async {
var response =
await searchAuthorResponse(name, limit, offset, ids, includes);
return AuthorSearchResults.fromJson(jsonDecode(response.body));
}