Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 858 Bytes

File metadata and controls

33 lines (21 loc) · 858 Bytes

ApEx(plorer)

A very simple library to grab data from Amazon Product API. Base for future personal project.

Initial howtotalktoAmzProductApi built by Oren Trutner

Sample:

class Program
{
	static void Main(string[] args)
	{
		AmazonProductExplorer apEx = new AmazonProductExplorer("AccessKeyID", "SecretKey", "AssociateTag");

		string[] responseGroup = new string[] { "ItemAttributes", "Small" };

		ItemSearchResponse response = apEx.SearchItemByTitle("Books", "WCF", responseGroup);

		var responseList = response.Items.SelectMany(i => i.Item);

		foreach (Item item in responseList)
		{
			Console.WriteLine(item.ASIN + " : " + item.ItemAttributes.Title);
		}

		Console.WriteLine("Total Results : " + response.Items.Sum(i => Int32.Parse(i.TotalResults)));
	}
}