The VBA was a real slog for me (I'm not a coder at all), if you're curious, you can download the (author unknown) Excel VBA that I heavily relied upon to get it working in Access
https://docs.google.com/file/d/0B7gzonuQsNbvUFFlOXVLUFNpMms/edit (click on the down arrow at the top of the screen to download)
The VBA code essentially constructs a very long URL, like this (which has the api name & products of interest embedded in it)...
https://mws.amazonservices.com?&ASINList.ASIN.1=B002KT3XQM&AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ _
&Action=GetLowestOfferListingsForASIN&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE _
&MarketplaceId=ATVPDKIKX0DER&SellerId=A1IMEXAMPLEWRC&SignatureMethod=HmacSHA256&SignatureVersion=2 _
&Timestamp=2012-12-04T22%3A03%3A05Z&Version=2011-10-01
& then the same VBA code 'hashes' the long URL like that above with a private key (that you get from Amazon) to come up with a signed URL....
https://mws.amazonservices.com?&ASINList.ASIN.1=B002KT3XQM&AWSAccessKeyId=AKIAEXAMPLEFWR4TJ7ZQ _
&Action=GetLowestOfferListingsForASIN&MWSAuthToken=amzn.mws.4ea38b7b-f563-7709-4bae-87aeaEXAMPLE _
&MarketplaceId=ATVPDKIKX0DER&SellerId=A1IMEXAMPLEWRC&SignatureMethod=HmacSHA256&SignatureVersion=2 _
&Timestamp=2012-12-04T22%3A03%3A05Z&Version=2011-10-01&
Signature=fJFzEXAMPLEEax1vAdKP7l3lwKQUH1r34lcEXAMPLEA%3D
I was *very* relieved that the hashing bit of the download VBA worked when I came to use it, because when i looked at it...I instantly had to lay down in a corner & adopt the foetal position.
Re the XML parsing....basically 2-3 weeks out of my life spent in a darkened room, with the steepest learning curve of anything I've had to do to date.
The problem with parsing XML, is that there aren't (apparently) many who use VBA to do it (vs. say C# or Java etc.) ...therefore not only did I have new (big) concepts grasp but the example XML parsing syntax out there on the net was all over the shop to my eyes at least! A very stressful 2-3 weeks indeed.
Ahem, while I'm here, for the life of me I can't get the syntax correct for something I'm now doing, all I want to do is embed a variable in an SQL command.
dim Marketplace as string
Marketplace = "UK"
DoCmd.RunSQL "DELETE * FROM
Marketplace_GetLowestOfferListingsForASIN"
So how to embed the bolded variable above?
(believe me, i've tried to google it, but my brain is now totally fuzzed...I know it needs extra single or double quotes, but just can't get the permutation correct.