亚马逊网络服务工作示例

时间:2012-03-01 04:31:00

标签: c# amazon-web-services

我已经搜索过高低,试图让产品广告API工作 - 我从这些论坛和互联网上尝试过很多例子但它不起作用。有一些关于修改WSDL的讨论,但也不起作用。

这是我去过的地方:
https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
http://aws.amazon.com/code/Product-Advertising-API/3941
http://aws.amazon.com/code/Product-Advertising-API/2609
http://flyingpies.wordpress.com/2009/08/13/signing-amazon-product-advertising-api-cwcf-part-2/ *

*这是最好的教程,直到AWS改变了WSDL,没有关于如何部署的例子 - 我实际上开始怀疑他们是否在发布之前测试他们的东西!

任何人都可以请我指出一个有效的C#示例吗?

修改
我也知道在https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html发布的信息,这意味着我知道每次搜索都必须包含AssociateTag。

3 个答案:

答案 0 :(得分:4)

我最近遇到过类似的问题,我使用上面提到的最后一个链接来创建一个c#应用程序但是由于新的realease停止工作,我无法解决它。

我下载了这个例子:

http://aws.amazon.com/code/Product-Advertising-API/2481

并做了一些小改动,让一切正常......

将名称空间更改为:

的主要名称

http://webservices.amazon.com/AWSECommerceService/2011-08-01

贯穿所有代码......

我想我可能已经在其他几个地方更新了代码,如果发生这些错误可以帮助你

答案 1 :(得分:0)

目前没有documentataion。

我被迫使用其他更有据可查的技术,例如Google Books API。

当亚马逊获得一些工作系统的文档时,我会将其作为答案并将其标记为当前文档。

答案 2 :(得分:0)

您好,您可以使用此库Nager.AmazonProductAdvertising 您可以使用ISBN-10或ISBN-13加载书籍信息

<强>的NuGet

PM> install-package Nager.AmazonProductAdvertising

示例

var authentication = new AmazonAuthentication();
authentication.AccessKey = "accesskey";
authentication.SecretKey = "secretkey";

var wrapper = new AmazonWrapper(authentication, AmazonEndpoint.US, "AssociateTag");
//Harry Potter and the Cursed Child
var result = wrapper.Lookup("978-1338099133");