Click here to Skip to main content
15,885,957 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I Use This Code To Get Kindle Books .I Get Books title,Auther But could not Get Any type of price. SO help me how to get kindle ebooks list price .what search index ,responce group use.......


C#
BasicHttpBinding binding = new BasicHttpBinding(BasicHttpSecurityMode.Transport);
           binding.MaxReceivedMessageSize = int.MaxValue;
           binding.ReaderQuotas.MaxStringContentLength = int.MaxValue;

           AWSECommerceServicePortTypeClient client = new AWSECommerceServicePortTypeClient(binding,
               new EndpointAddress("https://webservices.amazon.com/onca/soap?Service=AWSECommerceService"));


           client.ChannelFactory.Endpoint.Behaviors.Add(new Simple.AmazonSigningEndpointBehavior(Common.accessKeyId, Common.secretKey));
           //string[] dd = "Offers";
           // prepare an ItemSearch request
           string val = string.Empty;

           ItemSearchRequest request = new ItemSearchRequest();
           request.BrowseNode = catid;
           //request.Condition = "New";
           request.SearchIndex = "KindleStore";



          ItemSearch itemSearch = new ItemSearch();
           itemSearch.Request = new ItemSearchRequest[] { request };
           itemSearch.AWSAccessKeyId = Common.accessKeyId;
           itemSearch.AssociateTag = Common.associateTag;
           //itemSearch.MarketplaceDomain = "www.amazonsupply.com";

         request.ResponseGroup = new string[] { "Request,Large" };


           ItemSearchResponse response = client.ItemSearch(itemSearch);
Posted
Updated 28-Jun-15 19:50pm
v2
Comments
Member 11471920 23-Jun-15 6:29am    
but kindle ebooks not support offers response group .I want to get price kindle ebooks in .net c#

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900