C# 亚马逊产品广告 API

发布于 2024-08-02 16:44:36 字数 715 浏览 3 评论 0原文

自 8 月 15 日起,亚马逊强制要求签署对其产品广告 API 提出的所有请求。我以为一切都工作得很好,但当 15 号终于到来时,我的 Web 应用程序停止工作,几乎从我一直试图找出如何签署 SOAP 请求开始。

Amazon 有一个过时的签名请求示例代码,该代码似乎不起作用 此处

基本上,我需要知道如何使用最新的 C# SOAP API 和 .NET 3.5 向我的请求添加签名。

我希望我已经提供了足够的细节,如果没有,请随时要求我详细说明。

谢谢
The_Lorax

更新: 我正在使用 MVC,需要知道如何将签名添加到 ItemLookup 或 AWSECommerceService 对象。是否有包含签名值的属性?它如何附加到请求中?

此页面上,他们说我必须包括签名和时间戳参数,但智能感知现在确实显示任何此类属性。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

娇纵 2024-08-09 16:44:36

查看 http://flyingpies.wordpress.com/2009/08/01/17 /。它有一个演练和一个在 .NET 3.5 上使用 C#、SOAP、WCF 的示例 Visual Studio 解决方案。

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.

微凉徒眸意 2024-08-09 16:44:36

该库自动签署请求(Install-Package Nager.AmazonProductAdvertising)
https://www.nuget.org/packages/Nager.AmazonProductAdvertising/

示例:

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

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");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文