Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BestSellerRes ¶
type BookCoverURL ¶
type BookCoverURL struct {
URL string `json:"url"`
}
type BookDetail ¶
type BookDetail struct { Title string `json:"title"` Description string `json:"description"` Contributor string `json:"contributor"` Author string `json:"author"` ContributorNote string `json:"contributor_note"` Price string `json:"price"` AgeGroup string `json:"age_group"` Publisher string `json:"publisher"` PrimaryIsbn13 string `json:"primary_isbn13"` PrimaryIsbn10 string `json:"primary_isbn10"` }
type GoogleBookRes ¶
type GoogleBookRes struct { Items []struct { VolumeInfo struct { ImageLinks struct { Thumbnail string `json:"thumbnail"` } `json:"imageLinks"` } `json:"volumeInfo"` } `json:"items"` }
type HTTPClient ¶
type RestClient ¶
type RestClient struct {
// contains filtered or unexported fields
}
func NewRestClient ¶
func NewRestClient(bestSellerAPIKey, googleBookAPIKey string, httpClient HTTPClient) *RestClient
func (*RestClient) GetBookCoverURL ¶
func (r *RestClient) GetBookCoverURL(isbn string) BookCoverURL
func (*RestClient) GetSimpleBestSellers ¶
func (r *RestClient) GetSimpleBestSellers() []SimpleBook
type Result ¶
type Result struct { ListName string `json:"list_name"` DisplayName string `json:"display_name"` BestsellersDate string `json:"bestsellers_date"` PublishedDate string `json:"published_date"` Rank int64 `json:"rank"` RankLastWeek int64 `json:"rank_last_week"` WeeksOnList int64 `json:"weeks_on_list"` Asterisk int64 `json:"asterisk"` Dagger int64 `json:"dagger"` AmazonProductURL string `json:"amazon_product_url"` Isbns []Isbn `json:"isbns"` BookDetails []BookDetail `json:"book_details"` Reviews []Review `json:"reviews"` }
type SimpleBook ¶
type SimpleBook struct { LastWeekRank int64 `json:"lastWeekRank"` WeeksOnList int64 `json:"weeksOnList"` Rank int64 `json:"rank"` AmazonProductURL string `json:"amazonProductUrl"` Publisher string `json:"publisher"` Title string `json:"title"` Author string `json:"author"` Description string `json:"description"` Isbn string `json:"isbn"` }
Click to show internal directories.
Click to hide internal directories.