Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - ngs/go-amazon-product-advertising-api: Go Client Library for Amazon Product Advertising API

Go Client Library for Amazon Product Advertising API - ngs/go-amazon-product-advertising-api

Visit SiteGitHub - ngs/go-amazon-product-advertising-api: Go Client Library for Amazon Product Advertising API

GitHub - ngs/go-amazon-product-advertising-api: Go Client Library for Amazon Product Advertising API

Go Client Library for Amazon Product Advertising API - ngs/go-amazon-product-advertising-api

Powered by 0x5a.live ๐Ÿ’—

go-amazon-product-advertising-api

Build Status GoDoc Go Report Card Coverage Status

Go Client Library for Amazon Product Advertising API

How to Use

go get -u github.com/ngs/go-amazon-product-advertising-api/amazon
package main

import (
	"fmt"
	"log"

	"github.com/ngs/go-amazon-product-advertising-api/amazon"
)

func main() {
	client, err := amazon.NewFromEnvionment()
	if err != nil {
		log.Fatal(err)
	}
	res, err := client.ItemSearch(amazon.ItemSearchParameters{
		SearchIndex: amazon.SearchIndexBooks,
		Keywords:    "Go ่จ€่ชž",
	}).Do()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%d results found\n\n", res.Items.TotalResults)
	for _, item := range res.Items.Item {
		fmt.Printf(`-------------------------------
[Title] %v
[URL]   %v
`, item.ItemAttributes.Title, item.DetailPageURL)
	}
}
export AWS_ACCESS_KEY_ID=${YOUR_AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY=${YOUR_AWS_SECRET_ACCESS_KEY}
export AWS_PRODUCT_REGION=JP
export AWS_ASSOCIATE_TAG=ngsio-22

go run item_search.go

Author

Atsushi Nagase

License

See LICENSE

GoLang Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.