asp.net amazon itemsearch -


I am using Visual Studio 2008 and am trying to find API items like books or something. I'm just using accessKeyId, but when I click on the "Search" button to search the book, there is a signature error. Do I Need To Use Secret Keid? I have just created a new ASP.NET web site in Visual Studio or do I have to use the ADWS SDK for the net package?

Can someone give good advice thanks!

A signature error means that you have not made the request signature properly, you have to open SprightlySoft AWS for .NET. Component should be used. It's free and this product supports the Ads API. Get it. Does not work with ADS SDK Product Ads API for .NET.

Here is an example of calling the item search with the spreadsheet component.

  // Product Advertising API, Item Search: http://docs.amazonwebservices.com/AWSECommerceService/2010-10-01/DG/ItemSearch.html SprightlySoftAWS.REST Mayrest = new Spraitli soft Aves. REST (); String request URL; RequestURL = "https://ecs.amazonaws.com/onca/xml?Service=AWSECommerceService&Operation=ItemSearch&Version=2010-10-01"; RequestURL + = "& amp; AWSAccessKeyId =" + System.Uri.EscapeDataString (TextboxAWSAccessKeyId.Text) + "& amp; Signature Edition = 2 & amp; signature method = HmacSHA256 and timestamp =" + Uri.EscapeDataString (DateTime.UtcNow. ToString ("yyyy-MM -dd \\ THH: mm: ss.fff \\ Z")); RequestURL + = "& Actor =" + System.Uri.EscapeDataString ("Tom Cruise"); RequestURL + "" and Searchindex = DVD "; RequestURL + =" & amp; ResponseGroup = "+ System.Uri.EscapeDataString (" Item Properties, Reviews "); RequestURL +" "& Sort = For Sale"; RequestURL + "" & amp; ItemPage = 1 "; string Anurodmep; RequestMethod =" GET "; string signature value; SignatureValue = MyREST.GetSignatureVersion2Value (RequestURL, RequestMethod," ", text boxes AWSSecretAccessKey.Text); RequestURL + =" sign = "+ System.Uri .EscapeDataString (SignatureValue); Boolean Retbul; RetBool = Mayrest. Mekrekvest (request URL, request method, null); SystemkDiagnosticskDebugkPrint (MyRESTkLogData); Rispansmesj string = ""; if (RetBool == true) {System.Xml.XmlDocument MyXmlDocument; System.Xml.XmlNamespaceManager MyXmlNamespaceManager; System.Xml.XmlNode MyXmlNode; System.Xml.XmlNodeList MyXmlNodeList; MyXmlDocument = New System.Xml.XmlDocument (); MyXmlDocument.LoadXml (MyREST.ResponseStr ing); MyXmlNamespaceManager = new System.Xml.XmlNamespaceManager (MyXmlDocument.NameTable); MyXmlNamespaceManager.AddNamespace ( "amz", "http://webservices.amazon.com/AWSECommerceService/2010-10-01"); MyXmlNodeList = MyXmlDocument. SelectNodes ("AMS: Candid Response / AMJ: Item / MMS: Item", MyXmlNamespaceManager); If (MyXmlNodeList.Count == 0) {feedback message = "no items exist."; } Else {foreach (MyXmlNodeList in System.Xml.XmlNode ItemXmlNode) {MyXmlNode = ItemXmlNode.SelectSingleNode ( "amz: ItemAttributes / amz: title", MyXmlNamespaceManager); Feedback Message + = "Title =" + MyXmlNode.InnerText; MyXmlNode = ItemXmlNode.SelectSingleNode ("Amazon: ItemAttives / AMG: ListPrice / AMJ: FormattedPrice", MyXmlNamespaceManager); Response message + = "list process" + MyXmlNode.InnerText; Response message + = environment new line; }} MessageBox.Show (ResponseMessage); } Other {message box. Show (MyREST.ResponseStringFormatted); }    

Comments