Documentation
¶
Overview ¶
Package api wraps the go-amazon-product-api package
Index ¶
- func GetLocales() []string
- type API
- func (a API) CartAdd(CartID, HMAC string, Items map[string]int) (data.CartResponse, error)
- func (a API) CartCreate(Items map[string]int) (data.CartResponse, error)
- func (a API) CartGet(CartID, HMAC string) (data.CartResponse, error)
- func (a API) CartModify(CartID, HMAC string, CartItems map[string]int) (data.CartResponse, error)
- func (a API) ItemLookup(ASIN string, ResponseGroup string) (data.ItemResponse, error)
- func (a API) ItemSearch(SearchIndex string, Parameters map[string]string) (data.ItemSearchResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API struct {
ProductAPI *amazonproduct.AmazonProductAPI
Locale string
}
API is the container for API calls
func (API) CartCreate ¶
CartCreate creates a new cart
func (API) CartGet ¶
func (a API) CartGet(CartID, HMAC string) (data.CartResponse, error)
CartGet retrieves a cart
func (API) CartModify ¶
CartModify updates a cart
func (API) ItemLookup ¶
ItemLookup does a product lookup
func (API) ItemSearch ¶
func (a API) ItemSearch(SearchIndex string, Parameters map[string]string) (data.ItemSearchResponse, error)
ItemSearch does a product search
Click to show internal directories.
Click to hide internal directories.