amazon-product-api

Amazon Product Advertising API Signing Issues

不羁岁月 提交于 2019-12-01 22:02:33
i am trying to search in amazon product database with the following code posted in amazon webservice sample codes page 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"; request.Keywords = "The Shawshank Redemption"; // Set

Search amazon example with new amazon service

心不动则不痛 提交于 2019-12-01 08:12:29
I can not find a working example of the new amazon service (or at least, within the last couple of years). The closest working example just comes back with a null item no matter what I put in the title. The code is: // 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

Amazon Product Advertising API C#

和自甴很熟 提交于 2019-11-30 09:25:41
Can somebody tell me C# excample of using Amazon Product Advertising API, for example to lookup item. All i found is not working now because of changes. Thanks! edit: the most popular error is "Failed serialization of message body: ItemSearchRequest1 cant create temporary class" There's a C# sample here: http://aws.amazon.com/code/Product-Advertising-API/3941 FWIW, the AWS thread I mentioned includes these steps for a workaround: These are the steps as of January 31, 2012 to fix this issue in Visual Studio for .Net clients: 1) Click the "Show all files" button in the Solution Explorer for the

Amazon Product Advertising API C#

前提是你 提交于 2019-11-29 14:57:06
问题 Can somebody tell me C# excample of using Amazon Product Advertising API, for example to lookup item. All i found is not working now because of changes. Thanks! edit: the most popular error is "Failed serialization of message body: ItemSearchRequest1 cant create temporary class" 回答1: There's a C# sample here: http://aws.amazon.com/code/Product-Advertising-API/3941 FWIW, the AWS thread I mentioned includes these steps for a workaround: These are the steps as of January 31, 2012 to fix this

Get list of ALL offers from Amazon Product Advertising API

核能气质少年 提交于 2019-11-28 20:23:08
I need to be able to get a listing of all offers for a product using the amazon API. This is the request I'm sending: http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=ItemLookup&SubscriptionId=&AssociateTag=&Version=2011-08-01&ItemId=B007IJQDQQ&IdType=ASIN&ResponseGroup=Offers&Condition=All&MerchantId=All This is returning the follow under offers: <Offers> <TotalOffers>1</TotalOffers> <TotalOfferPages>1</TotalOfferPages> <MoreOffersUrl> http://www.amazon.com/gp/offer-listing/B007IJQDQQ%3FSubscriptionId%3DAKIAJTZ6VROOTPJAPPWQ%26tag%3Damazoautom-20%26linkCode%3Dxm2

Amazon Product API with R

孤街醉人 提交于 2019-11-28 08:33:39
I would like to use R to send requests to the Amazon Product API service. Is there a way to authenticate and query the Amazon Product API with R without getting the following error: "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details." Mischa Vreeburg Try this This should perform a search using the Product Advertising API, which I think you mean. You need to supply the AWSAccessKeyId and AWSsecretkey, which can be acquired on: http://docs.amazonwebservices.com

How to sort a list by byte-order for AWS-Calls

大憨熊 提交于 2019-11-28 05:56:55
问题 Having a look at http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html The following Name-Value Pairs: Service=AWSECommerceService Version=2011-08-01 AssociateTag=PutYourAssociateTagHere Operation=ItemSearch SearchIndex=Books Keywords=harry+potter Timestamp=2015-09-26T14:10:56.000Z AWSAccessKeyId=123 The name-value pairs have been sorted according to byte-order Should result in AWSAccessKeyId=123 AssociateTag=PutYourAssociateTagHere Keywords=harry%20potter Operation

fs.writeFile in a promise, asynchronous-synchronous stuff

江枫思渺然 提交于 2019-11-27 19:17:55
I need some help with my code. I'm new at Node.js and have a lot of trouble with it. What I'm trying to do: 1) Fetch a .txt with Amazon products (ASINs) ; 2) Fetch all products using the amazon-product-api package; 3) Save each product in a .json file. My code is not working. I think I messed up with this asynchronous-synchronous stuff - help me! var amazon = require('amazon-product-api'); var fs = require('fs'); var client = amazon.createClient({ awsId: "XXX", awsSecret: "XXX", awsTag: "888" }); var array = fs.readFileSync('./test.txt').toString().split('\n'); for (var i = 1; i < array.length

Amazon Product Advertising API Signature in iOS

别说谁变了你拦得住时间么 提交于 2019-11-27 10:58:09
问题 I am trying to access Amazon's Product Advertising API in my iOS application. Creating the signature seems to be the tough part. On this page: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/rest-signature.html It says to "Calculate an RFC 2104-compliant HMAC with the SHA256 hash algorithm". Amazon also provides a java class to do this for you: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/AuthJavaSampleSig2.html Does anybody know how I can do this in

Amazon Product API with R

白昼怎懂夜的黑 提交于 2019-11-27 02:19:02
问题 I would like to use R to send requests to the Amazon Product API service. Is there a way to authenticate and query the Amazon Product API with R without getting the following error: "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details." 回答1: Try this This should perform a search using the Product Advertising API, which I think you mean. You need to supply the