api

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package api wraps the go-amazon-product-api package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocales

func GetLocales() []string

GetLocales returns all available locales

Types

type API

type API struct {
	ProductAPI *amazonproduct.AmazonProductAPI
	Locale     string
}

API is the container for API calls

func Create

func Create(locale string) API

Create is the API factory

func (API) CartAdd

func (a API) CartAdd(CartID, HMAC string, Items map[string]int) (data.CartResponse, error)

CartAdd adds an item to the cart

func (API) CartCreate

func (a API) CartCreate(Items map[string]int) (data.CartResponse, error)

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

func (a API) CartModify(CartID, HMAC string, CartItems map[string]int) (data.CartResponse, error)

CartModify updates a cart

func (API) ItemLookup

func (a API) ItemLookup(ASIN string, ResponseGroup string) (data.ItemResponse, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL