Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsinFromPath ¶
func MarketFromHost ¶
Types ¶
type Chapter ¶
type ChapterInfo ¶
type ContentRequest ¶
type ContentRequest struct {
*Request
}
func Content ¶
func Content() *ContentRequest
func (*ContentRequest) Asin ¶
func (c *ContentRequest) Asin(id string) (*ContentResponse, error)
func (*ContentRequest) Get ¶
func (c *ContentRequest) Get(u string) (*ContentResponse, error)
func (*ContentRequest) URL ¶
func (c *ContentRequest) URL(u string) (*ContentResponse, error)
type ContentResponse ¶
type ContentResponse struct {
Meta struct {
ChapterInfo `json:"chapter_info"`
ContentReference struct {
Asin string `json:"asin"`
} `json:"content_reference"`
} `json:"content_metadata"`
}
func (*ContentResponse) Chapters ¶
func (c *ContentResponse) Chapters() []*avtools.Chapter
type Product ¶
type Product struct {
Authors []map[string]string `json:"authors"`
ProductImages map[string]string `json:"product_images"`
PublisherSummary string `json:"publisher_summary"`
RuntimeMin int `json:"runtime_length_min"`
Asin string `json:"asin"`
Languages string `json:"language"`
Narrators []map[string]string `json:"narrators"`
Publisher string `json:"publisher_name"`
ReleaseDate string `json:"release_date"`
Series []map[string]string `json:"series"`
Title string `json:"title"`
ChapterInfo
}
func (Product) FilterValue ¶
type ProductsRequest ¶
type ProductsRequest struct {
*Request
}
func Products ¶
func Products() *ProductsRequest
func (*ProductsRequest) Get ¶
func (p *ProductsRequest) Get() (*ProductsResponse, error)
func (*ProductsRequest) Search ¶
func (p *ProductsRequest) Search(s *Search) (*ProductsResponse, error)
func (*ProductsRequest) URL ¶
func (p *ProductsRequest) URL(u string) (*ProductsResponse, error)
type ProductsResponse ¶
type Query ¶
type Query struct {
URI string
ID string
IsAudio bool
Query url.Values
*url.URL
*Host
// contains filtered or unexported fields
}
func (*Query) AppendPath ¶
func (*Query) PrependPath ¶
type Request ¶
func (*Request) NumResults ¶
Click to show internal directories.
Click to hide internal directories.