Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an up-to-date c# sample for the Amazon product API?

Tags:

c#

asp.net

amazon

I'm trying to create a small application that interacts with the Product API of Amazon (get prices of articles, and so on)

Unfortunately all the C# samples for the interaction with the Amazon WCF service I've found so far are outdated. I know that Amazon decided that each service call must be signed with a personal accessKeyId and secretKey, so all minimal code samples that are older than 2009 (I think they made the change in 2009) are useless. The official Amazon documentation is useless to me as well, as it does not provide necessary information.

I've also googled two tutorial on how to access the API, and following these only result in no search results for any search tearm or simply null.

Is there an up-to-date (working!!) minimal sample somewhere available?

like image 839
citronas Avatar asked Dec 22 '11 16:12

citronas


1 Answers

So, I finally found the solution, based on a comment posted here: http://www.falconwebtech.com/post/2010/06/14/Using-WCF-and-SOAP-to-Send-Amazon-Product-Advertising-API-Signed-Requests.aspx This is also the URL, where I downloaded the code I made working.

I didn't pass my "Your unique Associates ID", which I didn't even had until just now. You can get it here: https://affiliate-program.amazon.com/

Add

itemSearch.AssociateTag = "YourAssociateID";

before amazonClient.ItemSearch(itemSearch).

Works like a charm

like image 196
citronas Avatar answered Sep 17 '22 19:09

citronas