简体   繁体   中英

C# Amazon Product Advertising API

As of August 15, Amazon made it compulsory to sign all requests made to their Product Advertising API. I thought I had got everything working just fine but when the 15th finally came around, my web application stopped working and pretty much ever since I have been trying to find out how to sign the SOAP requests.

Amazon has an outdated sample code for signing requests that doesn't appear to work here

Basically, I need to know how to add a signature to the my requests using the most current C# SOAP API and .NET 3.5.

I hope I have given enough details, if I haven't please feel free to ask me to elaborate.

Thank You
The_Lorax

UPDATE: I am using MVC and need to know how to add the Signature to the the ItemLookup or AWSECommerceService object. Is there an attribute that contains the signature value? How does it get attached to the request?

On this page , they say that I must include the Signature and TimeStamp parameters but the intellisense does now show any such attributes.

Check out http://flyingpies.wordpress.com/2009/08/01/17/ . It has a walkthrough and a sample visual studio solution using C#, SOAP, WCF on .NET 3.5.

This library automatic sign the requests (Install-Package Nager.AmazonProductAdvertising) https://www.nuget.org/packages/Nager.AmazonProductAdvertising/

Example:

var authentication = new AmazonAuthentication("accesskey", "secretkey");
var client = new AmazonProductAdvertisingClient(authentication, AmazonEndpoint.US);
var result = await client.SearchItemsAsync("canon eos");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM