Amazon Product API wrapper in C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nuget
AmazonApi.Tests
AmazonProductAPI
packages
.gitattributes
.gitignore
AmazonProductApi.sln
AmazonProductApi.v12.suo
README.md

README.md

AmazonProductApi

Amazon Product API wrapper in C#

  var awsconfiguration = new AwsConfiguration(awskey, awsSecretKey, destination, apiVersion, associateTag, xmlnamespace);
  var amazonapi = new AmazonProductApi(awsconfiguration);
  var products = await amazonapi.ItemLookup(productids, "Images,ItemAttributes,Offers");
            

You can optionally pass a Func<string, Task<XDocument>> to avoid hitting amazon services in unit tests

Func<string, Task<XDocument>> retrievelfunc = (url) => Task.FromResult(XDocument.Load(@"Assets\amazon.xml"));
var products = await amazonapi.ItemLookup(productids, "Images,ItemAttributes,Offers", retrievelfunc);

Uses signed request helper from here https://aws.amazon.com/code/Product-Advertising-API/2480