Tag: amazon product api

由UPC进行项目查找的amazon web services

我的工作环境是Visual Studio 2008 + C# 我正在使用Amazon WebService,我想使用SOAP从Amazon获取数据,但是当我尝试传递IDType = UPC时,它会给出以下错误消息,那么我该怎么做呢? 错误: 036725229884不是ItemId的有效值。 请更改此值,然后重试您的请求 mycode的: ItemLookupRequest request1 = new ItemLookupRequest(); request1.IdType = ItemLookupRequestIdType.UPC; request1.IdTypeSpecified = true; request1.ItemId = new string[] { ProductID }; request1.ResponseGroup = new string[] { “Request”, “Large”, “OfferFull”, “BrowseNodes” }; request1.MerchantId = “All”; request1.Condition = Condition.All; request1.SearchIndex = “Books”; 注意:如何添加多个SearchIndex(“书籍”,“照片”,“video”)? 我使用了以下WebService: http : //webservices.amazon.com/AWSECommerceService/2009-11-01/US/AWSECommerceService.wsdl

Amazon(AWS) – 请求必须包含参数Signature

我正在努力完成让我的第一部分代码与AWS合作的最后一部分 – 我已经做到了这一点,我在VS中附加了Web引用,这有这个 amazon.AWSECommerceService service = new amazon.AWSECommerceService(); // prepare an ItemSearch request amazon.ItemSearchRequest request = new amazon.ItemSearchRequest(); request.SearchIndex = “DVD”; request.Title = “scream”; request.ResponseGroup = new string[] { “Small” }; amazon.ItemSearch itemSearch = new amazon.ItemSearch(); itemSearch.AssociateTag = “”; itemSearch.Request = new ItemSearchRequest[] { request }; itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings[“AwsAccessKeyId”]; itemSearch.Request = new ItemSearchRequest[] { request […]

C#亚马逊产品广告API

截至8月15日,亚马逊强制要求签署对其产品广告API的所有请求。 我以为我已经把一切都运行得很好但是当第15个终于出现时,我的Web应用程序停止工作,几乎从那以后我一直试图找出如何签署SOAP请求。 亚马逊有一个过时的示例代码,用于签署看似不起作用的请求 基本上,我需要知道如何使用最新的C#SOAP API和.NET 3.5为我的请求添加签名。 我希望我已经提供了足够的细节,如果我没有请随意请我详细说明。 谢谢 绕口令 更新:我正在使用MVC并且需要知道如何将Signature添加到ItemLookup或AWSECommerceService对象。 是否有包含签名值的属性? 它如何附加到请求? 在这个页面上 ,他们说我必须包含Signature和TimeStamp参数,但intellisense现在会显示任何这样的属性。

亚马逊产品广告API签名问题

我正在尝试使用以下代码在amazon web services示例代码页中搜索亚马逊产品数据库 AWSECommerceService ecs = new AWSECommerceService(); // Create ItemSearch wrapper ItemSearch search = new ItemSearch(); search.AssociateTag = “ABC”; search.AWSAccessKeyId = “XYZ”; // Create a request object ItemSearchRequest request = new ItemSearchRequest(); // Fill request object with request parameters request.ResponseGroup = new string[] { “ItemAttributes” }; // Set SearchIndex and Keywords request.SearchIndex = “All”; […]

使用新的亚马逊服务搜索亚马逊示例

我找不到新的亚马逊服务的实例(或至少在过去几年内)。 最接近的工作示例只是返回一个null项,无论我在标题中放置什么。 代码是: // Amazon ProductAdvertisingAPI client AWSECommerceServicePortTypeClient amazonClient = new AWSECommerceServicePortTypeClient(); // prepare an ItemSearch request ItemSearchRequest request = new ItemSearchRequest(); request.SearchIndex = “Books”; request.Title = “C#”; request.Condition = Condition.All; //request.ResponseGroup = new string[] { “Small” }; ItemSearch itemSearch = new ItemSearch(); itemSearch.Request = new ItemSearchRequest[] { request }; itemSearch.AWSAccessKeyId = ConfigurationManager.AppSettings[“accessKeyId”]; // send […]

亚马逊产品广告API C#

有人可以告诉我使用亚马逊产品广告API的C#例子,例如查找项目。 由于变化,我发现的所有现在都不起作用。 谢谢! 编辑: 最流行的错误是“邮件正文序列化失败:ItemSearchRequest1无法创建临时类”