v4.4.0
books_finder
Google Books API에서 책을 검색하는 데 도움이 되는 라이브러리
25좋아요 11630일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
Google Books API에서 책을 검색하는 데 도움이 되는 라이브러리
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A library to help on the search for books on the Google Books Api.
First of all, import the library:
import 'package:books_finder/books_finder.dart';
To query books, just call the function queryBooks:
final List<Book> books = await queryBooks(
'twilight',
queryType: QueryType.intitle,
maxResults: 3,
printType: PrintType.books,
orderBy: OrderBy.relevance,
);
You can change a few parameters to make your query more specific:
| Parameter | Description | Nullable |
|---|---|---|
| queryType | Keywords to search in particular fields | Yes |
| maxResults | Set the max amount of results | No |
| startIndex | for pagination | No |
| langRestrict | Retrict the query to a specific language | Yes |
| orderBy | Order the query by newest or relevance | Yes |
| printType | Filter by books, magazines or both | Yes |
| reschemeImageLinks | Rescheme image urls from http to https |
No |
If you already have a Book object, you can call book.info to get all the book infos:
final info = book.info;
| Parameter | Description |
|---|---|
title (String) |
Title of the book |
subtitle (String) |
The subtile of the book |
authors (List<String>) |
All the authors names |
publisher (String) |
The publisher name |
publishedDate (DateTime) |
The date it was published |
rawPublishedDate (String) |
The date it was published in raw format |
description (String) |
Description of the book |
pageCount (int) |
The amount of pages |
categories (List<String>) |
The categories the book is in |
averageRating (double) |
The average rating of the book |
ratingsCount (int) |
The amount of people that rated it |
maturityRating (String) |
The maturity rating |
contentVersion (String) |
The version of the content |
industryIdentifier (List<IndustryIdentifier>) |
The identifiers of the book (isbn) |
imageLinks (List<Map<String, Uri>>) |
The links with the avaiable image resources |
language (String) |
The language code of the book |
startIndexBookInfo.subtitle and QueryTypePlease file issues, bugs, or feature requests in our issue tracker.
To contribute a change to this plugin open a pull request.
사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗