Skip to content

Go lang library for Amazon Product Advertising API

License

Notifications You must be signed in to change notification settings

mattbit/amazonpa

Repository files navigation

Build Status

Amazon PA

A Go lang library to interact with Amazon Product Advertising API.

The library does not cover all the functionality of the PA API, but feel free to create new pull requests and I will try to merge them quickly!

Example

package main

import (
	"fmt"

	"github.com/mattbit/amazonpa"
)

func main() {
	cfg := amazonpa.Config{
		AccessKey:    "YOUR_KEY",
		AccessSecret: "YOUR_SECRET",
		AssociateTag: "YOUR_TAG",
		Region:       "YOUR_REGION",
		Secure:       true,
	}
	client := amazonpa.NewClient(cfg)

	query := amazonpa.ItemSearchQuery{
		SearchIndex:    "All",
		Keywords:       "mouse",
		ResponseGroups: []string{"Large"},
	}

	response, err := client.ItemSearch(query)

	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Printf("Found %d items\n", len(response.Items.Items))
	}
}

About

Go lang library for Amazon Product Advertising API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages