Documentation
¶
Index ¶
- type GenInfo
- type GenInfoFloat
- type GenInfoInt
- type GenInfoTime
- type IdInfo
- type Item
- func (i *Item) BookCover() entity.BookCover
- func (i *Item) Codes() []entity.Code
- func (i *Item) Creators() []entity.Creator
- func (i *Item) LastRelease() values.Date
- func (i *Item) ProductType() string
- func (i *Item) PublicationDate() values.Date
- func (i *Item) Publisher() string
- func (i *Item) Title() string
- type PAAPI5
- type Price
- type Query
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenInfoFloat ¶
type GenInfoInt ¶
type GenInfoTime ¶
type Item ¶
type Item struct {
ASIN string
DetailPageURL string
Images *struct {
Primary *struct {
Medium *entity.BookCover `json:",omitempty"`
} `json:",omitempty"`
} `json:",omitempty"`
ItemInfo *struct {
ByLineInfo *struct {
Brand *GenInfo `json:",omitempty"`
Manufacturer *GenInfo `json:",omitempty"`
Contributors []struct {
Name string
Locale string
Role string
}
} `json:",omitempty"`
Classifications *struct {
Binding GenInfo
ProductGroup GenInfo
} `json:",omitempty"`
ContentInfo *struct {
Edition *GenInfo `json:",omitempty"`
Languages struct {
DisplayValues []struct {
DisplayValue string
Type string
}
Label string
Locale string
}
PagesCount struct {
DisplayValue int
Label string
Locale string
}
PublicationDate GenInfoTime
} `json:",omitempty"`
ExternalIds *struct {
EANs *IdInfo `json:",omitempty"`
ISBNs *IdInfo `json:",omitempty"`
UPCs *IdInfo `json:",omitempty"`
} `json:",omitempty"`
ProductInfo *struct {
Color *GenInfo `json:",omitempty"`
IsAdultProduct struct {
DisplayValue bool
Label string
Locale string
}
ItemDimensions *struct {
Height *GenInfoFloat `json:",omitempty"`
Length *GenInfoFloat `json:",omitempty"`
Weight *GenInfoFloat `json:",omitempty"`
Width *GenInfoFloat `json:",omitempty"`
} `json:",omitempty"`
ReleaseDate *GenInfoTime `json:",omitempty"`
Size *GenInfo `json:",omitempty"`
UnitCount *GenInfoInt `json:",omitempty"`
} `json:",omitempty"`
Title *GenInfo `json:",omitempty"`
}
}
func (*Item) LastRelease ¶
func (*Item) ProductType ¶
func (*Item) PublicationDate ¶
type PAAPI5 ¶
type PAAPI5 struct {
// contains filtered or unexported fields
}
PAAPI5 is a api.API class for PA-API v5
func (*PAAPI5) LookupBook ¶
/LookupBook returns Book data from PA-API
func (*PAAPI5) LookupRawData ¶
/LookupRawData returns PA-API raw data
type Query ¶
type Query struct {
OpeCode paapi5.Operation `json:"Operation"`
Marketplace string
PartnerTag string
PartnerType string
ItemIds []string `json:",omitempty"`
ItemIdType string `json:",omitempty"`
Resources []string `json:",omitempty"`
}
Query is query data class for PA-API v5
Click to show internal directories.
Click to hide internal directories.