Created
June 11, 2016 21:00
-
-
Save gen1321/9eb132c76d41b99adb52ae377989787c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resp = AmzLookUp.item_lookup( | |
[1] pry(main)* query: { | |
[1] pry(main)* 'ItemId' => 'B00SX05RCU', | |
[1] pry(main)* 'Condition' => 'All', | |
[1] pry(main)* 'ResponseGroup' => 'OfferFull', | |
[1] pry(main)* 'MerchantId'=> 'All' | |
[1] pry(main)* } | |
[1] pry(main)* ).to_h | |
=> {"ItemLookupResponse"=> | |
{"OperationRequest"=> | |
{"HTTPHeaders"=> | |
{"Header"=> | |
{"Name"=>"UserAgent", | |
"Value"=>"Jeff/1.5.1 (Language=Ruby; gen-Aspire-5750G)"}}, | |
"RequestId"=>"0b925518-fb5e-4313-bd11-a7f59630d9e4", | |
"Arguments"=> | |
{"Argument"=> | |
[{"Name"=>"AWSAccessKeyId", "Value"=>"AKIAI42PXZ2Q3M2SUVBQ"}, | |
{"Name"=>"AssociateTag", "Value"=>"mborisbeginin-20"}, | |
{"Name"=>"Condition", "Value"=>"All"}, | |
{"Name"=>"ItemId", "Value"=>"B00SX05RCU"}, | |
{"Name"=>"MerchantId", "Value"=>"All"}, | |
{"Name"=>"Operation", "Value"=>"ItemLookup"}, | |
{"Name"=>"ResponseGroup", "Value"=>"OfferFull"}, | |
{"Name"=>"Service", "Value"=>"AWSECommerceService"}, | |
{"Name"=>"SignatureMethod", "Value"=>"HmacSHA256"}, | |
{"Name"=>"SignatureVersion", "Value"=>"2"}, | |
{"Name"=>"Timestamp", "Value"=>"2016-06-11T20:59:04Z"}, | |
{"Name"=>"Version", "Value"=>"2013-08-01"}, | |
{"Name"=>"Signature", | |
"Value"=>"LUPoLu1KPcRyCvg7xUDm6P7fiB5q5Nt4rEy+wtbBCik="}]}, | |
"RequestProcessingTime"=>"0.0548661130000000"}, | |
"Items"=> | |
{"Request"=> | |
{"IsValid"=>"True", | |
"ItemLookupRequest"=> | |
{"Condition"=>"All", | |
"IdType"=>"ASIN", | |
"MerchantId"=>"Deprecated", | |
"ItemId"=>"B00SX05RCU", | |
"ResponseGroup"=>"OfferFull", | |
"VariationPage"=>"All"}}, | |
"Item"=> | |
{"ASIN"=>"B00SX05RCU", | |
"ParentASIN"=>"B00TTMSCKA", | |
"OfferSummary"=> | |
{"LowestNewPrice"=> | |
{"Amount"=>"5400", | |
"CurrencyCode"=>"USD", | |
"FormattedPrice"=>"$54.00"}, | |
"TotalNew"=>"1", | |
"TotalUsed"=>"0", | |
"TotalCollectible"=>"0", | |
"TotalRefurbished"=>"0"}, | |
"Offers"=> | |
{"TotalOffers"=>"1", | |
"TotalOfferPages"=>"1", | |
"MoreOffersUrl"=> | |
"http://www.amazon.com/gp/offer-listing/B00SX05RCU%3FSubscriptionId%3DAKIAI42PXZ2Q3M2SUVBQ%26tag%3Dmborisbeginin-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D386001%26creativeASIN%3DB00SX05RCU", | |
"Offer"=> | |
{"Merchant"=>{"Name"=>"Omer Dahan"}, | |
"OfferAttributes"=>{"Condition"=>"New"}, | |
"OfferListing"=> | |
{"OfferListingId"=> | |
"xIqA3X%2F%2FSCg6oQu4JGTB8jWfl%2FDRIsviGAaUt%2FPKbsOAoVkBqY77LHovDh9L%2BVt0%2FuYjatmqfri%2B1ruyGcpYgGXj9m3dgJKR7eMrtwbJbKVGfcO6Z9qhCMQiTenehMDCspP11nKsY79n5BbtUX3blKvzmLezT4yf", | |
"Price"=> | |
{"Amount"=>"7300", | |
"CurrencyCode"=>"USD", | |
"FormattedPrice"=>"$73.00"}, | |
"SalePrice"=> | |
{"Amount"=>"5400", | |
"CurrencyCode"=>"USD", | |
"FormattedPrice"=>"$54.00"}, | |
"AmountSaved"=> | |
{"Amount"=>"1900", | |
"CurrencyCode"=>"USD", | |
"FormattedPrice"=>"$19.00"}, | |
"PercentageSaved"=>"26", | |
"Availability"=>"Usually ships in 2-3 business days", | |
"AvailabilityAttributes"=> | |
{"AvailabilityType"=>"now", | |
"MinimumHours"=>"48", | |
"MaximumHours"=>"72"}, | |
"IsEligibleForSuperSaverShipping"=>"0", | |
"IsEligibleForPrime"=>"0"}}}}}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment