/amazonitemlookup

A C# wrapper around a few simple calls to Amazon's item lookup API

Primary LanguageC#MIT LicenseMIT

#AmazonItemLookup

##Easy item lookup by ASIN from Amazon Product Advertising API

by Nathan Craddock

Installation

The package can be installed through nuget package manager and you can use the following command to install it.

Install-Package AmazonItemLookup

Set up a connection

AwsProductApiClient api = new AwsProductApiClient(new ProductApiConnectionInfo
		{
			AWSAccessKey = config.AWSAccessKey,
			AWSSecretKey = config.AWSSecretKey,
			AWSAssociateTag = config.AWSAssociateTag,
			[AWSServerUri = "webservices.amazon.co.uk"]
		});

Retrieve an item from Amazon by ASIN

    AwsItem item = api.LookupByAsin(ASIN);

Create a cart on Amazon with 2 items in it and transfer the user to the purchase URL

    AwsCart cart = api.CreateCart(new CartItem { Asin = "B0071YIFJ6" }, new CartItem { Asin = "B001H1SVO8" });

Packaging

  • Update the package version on src/NKCraddock.AmazonItemLookup/NKCraddock.AmazonItemLookup.dll.nuspec
  • Execute the file src/CreatePackage.bat

Colaborators

Marcos Placona - Twilio

Changelog

  • Add support for CreateCart
  • Add support for localized Amazon websites
  • Create Nuget package
  • Add nuget creation files