asin 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +4 -6
- data/CHANGELOG.rdoc +10 -0
- data/Gemfile.lock +36 -26
- data/README.rdoc +11 -9
- data/asin.gemspec +13 -11
- data/lib/asin/client.rb +27 -7
- data/lib/asin/configuration.rb +52 -100
- data/lib/asin/version.rb +1 -1
- data/rakefile.rb +1 -7
- data/spec/browse_node_spec.rb +1 -3
- data/spec/cart_spec.rb +26 -36
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml +68 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml +66 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml +67 -0
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml +70 -0
- data/spec/cassettes/{browse_node_599826.yml → asin/browse_node_should_lookup_a_browse_node.yml} +8 -8
- data/spec/cassettes/asin/cart_should_create_a_cart.yml +36 -0
- data/spec/cassettes/{lookup_1430218150_item_class.yml → asin/lookup_and_search_should_have_metadata.yml} +39 -21
- data/spec/cassettes/{lookup_1430218150.yml → asin/lookup_and_search_should_lookup_a_book.yml} +39 -21
- data/spec/cassettes/{lookup_multiple_asins.yml → asin/lookup_and_search_should_lookup_multiple_books.yml} +89 -71
- data/spec/cassettes/{lookup_1430218150_small_and_alternateversions.yml → asin/lookup_and_search_should_lookup_multiple_response_groups.yml} +7 -7
- data/spec/cassettes/{lookup_1430218150_rash.yml → asin/lookup_and_search_should_return_a_custom_item_class.yml} +39 -21
- data/spec/cassettes/{lookup_1430218150_medium.yml → asin/lookup_and_search_should_return_a_mash_value.yml} +39 -21
- data/spec/cassettes/{lookup_1430218150_mash.yml → asin/lookup_and_search_should_return_a_rash_value.yml} +39 -21
- data/spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml +81 -0
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml +538 -0
- data/spec/cassettes/{search_keywords_single_result.yml → asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml} +19 -19
- data/spec/cassettes/{search_keywords_index_music.yml → asin/lookup_and_search_should_search_keywords_never_mind_music.yml} +62 -59
- data/spec/cassettes/asin/lookup_and_search_should_search_music.yml +37 -0
- data/spec/cassettes/{search_keywords_key_index_music.yml → asin/lookup_and_search_should_search_never_mind_music.yml} +76 -67
- data/spec/cassettes/asin/similarity_should_find_similar_items.yml +618 -0
- data/spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml +58 -0
- data/spec/cassettes/asin/similarity_should_lookup_for_similar_items.yml +618 -0
- data/spec/config_spec.rb +2 -7
- data/spec/search_spec.rb +60 -87
- data/spec/similarity_spec.rb +23 -0
- data/spec/spec_helper.rb +19 -6
- metadata +158 -137
- data/spec/cassettes/add_items1430216263.yml +0 -67
- data/spec/cassettes/clear_cart.yml +0 -65
- data/spec/cassettes/create_cart_with_asin_1430218150_and_other_asin_1430216263.yml +0 -36
- data/spec/cassettes/get_cart.yml +0 -67
- data/spec/cassettes/lookup_1430218150_raw.yml +0 -63
- data/spec/cassettes/search_index_music.yml +0 -32
- data/spec/cassettes/search_keywords.yml +0 -479
- data/spec/cassettes/update_items.yml +0 -70
data/spec/browse_node_spec.rb
CHANGED
@@ -7,12 +7,10 @@ module ASIN
|
|
7
7
|
@helper.configure :secret => @secret, :key => @key
|
8
8
|
end
|
9
9
|
|
10
|
-
it "should lookup a browse_node" do
|
11
|
-
VCR.use_cassette("browse_node_#{ANY_BROWSE_NODE_ID}", :match_requests_on => [:host, :path]) do
|
10
|
+
it "should lookup a browse_node", :vcr do
|
12
11
|
item = @helper.browse_node(ANY_BROWSE_NODE_ID)
|
13
12
|
item.node_id.should eql(ANY_BROWSE_NODE_ID)
|
14
13
|
item.name.should eql('Comedy')
|
15
|
-
end
|
16
14
|
end
|
17
15
|
end
|
18
16
|
end
|
data/spec/cart_spec.rb
CHANGED
@@ -8,12 +8,10 @@ module ASIN
|
|
8
8
|
|
9
9
|
context "cart" do
|
10
10
|
|
11
|
-
it "should create a cart" do
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
cart.empty?.should be(false)
|
16
|
-
end
|
11
|
+
it "should create a cart", :vcr do
|
12
|
+
cart = @helper.create_cart({:asin => ANY_ASIN, :quantity => 1}, {:asin => ANY_OTHER_ASIN, :quantity => 2})
|
13
|
+
cart.valid?.should be(true)
|
14
|
+
cart.empty?.should be(false)
|
17
15
|
end
|
18
16
|
|
19
17
|
it "should handle item paramters" do
|
@@ -23,42 +21,34 @@ module ASIN
|
|
23
21
|
|
24
22
|
context "with an existing cart" do
|
25
23
|
|
26
|
-
it "should clear a cart" do
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
cart.empty?.should be(true)
|
32
|
-
end
|
24
|
+
it "should clear a cart", :vcr do
|
25
|
+
@cart = @helper.create_cart({:asin => ANY_ASIN, :quantity => 1})
|
26
|
+
cart = @helper.clear_cart(@cart)
|
27
|
+
cart.valid?.should be(true)
|
28
|
+
cart.empty?.should be(true)
|
33
29
|
end
|
34
30
|
|
35
|
-
it "should get a cart" do
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
cart.empty?.should be(false)
|
41
|
-
end
|
31
|
+
it "should get a cart", :vcr do
|
32
|
+
@cart = @helper.create_cart({:asin => ANY_ASIN, :quantity => 1})
|
33
|
+
cart = @helper.get_cart(@cart.cart_id, @cart.hmac)
|
34
|
+
cart.valid?.should be(true)
|
35
|
+
cart.empty?.should be(false)
|
42
36
|
end
|
43
37
|
|
44
|
-
it "should add items to a cart" do
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
cart.items.should have(2).things
|
51
|
-
end
|
38
|
+
it "should add items to a cart", :vcr do
|
39
|
+
@cart = @helper.create_cart({:asin => ANY_ASIN, :quantity => 1})
|
40
|
+
cart = @helper.add_items(@cart, {:asin => ANY_OTHER_ASIN, :quantity => 2})
|
41
|
+
cart.valid?.should be(true)
|
42
|
+
cart.empty?.should be(false)
|
43
|
+
cart.items.should have(2).things
|
52
44
|
end
|
53
45
|
|
54
|
-
it "should update a cart" do
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
cart.valid?.should be(true)
|
61
|
-
end
|
46
|
+
it "should update a cart", :vcr do
|
47
|
+
@cart = @helper.create_cart({:asin => ANY_ASIN, :quantity => 1})
|
48
|
+
item_id = @cart.items.first.CartItemId
|
49
|
+
cart = @helper.update_items(@cart, {:cart_item_id => item_id, :action => 'SaveForLater'}, {:cart_item_id => item_id, :quantity => 7})
|
50
|
+
cart.saved_items.should have(1).things
|
51
|
+
cart.valid?.should be(true)
|
62
52
|
end
|
63
53
|
|
64
54
|
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=5sWyeKMk9jtVYoITVfJMjolGlzvDJ0fIk7rP4il81Lo=&Timestamp=2011-11-17T12:26:34Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Thu, 17 Nov 2011 12:26:34 GMT
|
15
|
+
server:
|
16
|
+
- Server
|
17
|
+
content-type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding,User-Agent
|
21
|
+
nncoection:
|
22
|
+
- close
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>014QB123K7ASW4SE6QEM</RequestId><Arguments><Argument
|
27
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
28
|
+
Name="Item.0.Quantity" Value="1"></Argument><Argument Name="Signature" Value="5sWyeKMk9jtVYoITVfJMjolGlzvDJ0fIk7rP4il81Lo="></Argument><Argument
|
29
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Operation"
|
30
|
+
Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument
|
31
|
+
Name="Timestamp" Value="2011-11-17T12:26:34Z"></Argument><Argument Name="Version"
|
32
|
+
Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.162961006164551</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>183-2540013-3419242</CartId><HMAC>QqoPIkmIkhVQ4/giDmvD0ouD1vo=</HMAC><URLEncodedHMAC>QqoPIkmIkhVQ4%2FgiDmvD0ouD1vo%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=183-2540013-3419242%26associate-id=ws%26hmac=QqoPIkmIkhVQ4/giDmvD0ouD1vo=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
33
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
|
34
|
+
http_version: '1.1'
|
35
|
+
- !ruby/struct:VCR::HTTPInteraction
|
36
|
+
request: !ruby/struct:VCR::Request
|
37
|
+
method: :get
|
38
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&CartId=183-2540013-3419242&HMAC=QqoPIkmIkhVQ4/giDmvD0ouD1vo=&Item.0.ASIN=1430216263&Item.0.Quantity=2&Operation=CartAdd&Service=AWSECommerceService&Signature=FR0UOB+2MqOE9YuJ/CVBCTw9ONTLDa5Q78ISyT0TATw=&Timestamp=2011-11-17T12:26:34Z&Version=2010-11-01
|
39
|
+
body:
|
40
|
+
headers:
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
date:
|
47
|
+
- Thu, 17 Nov 2011 12:26:34 GMT
|
48
|
+
server:
|
49
|
+
- Server
|
50
|
+
content-type:
|
51
|
+
- text/xml;charset=UTF-8
|
52
|
+
vary:
|
53
|
+
- Accept-Encoding,User-Agent
|
54
|
+
nncoection:
|
55
|
+
- close
|
56
|
+
transfer-encoding:
|
57
|
+
- chunked
|
58
|
+
body: ! '<?xml version="1.0" encoding="UTF-8"?><CartAddResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
59
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0JBNK5NQF7NJE0TSNSM1</RequestId><Arguments><Argument
|
60
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
61
|
+
Name="Item.0.Quantity" Value="2"></Argument><Argument Name="Signature" Value="FR0UOB+2MqOE9YuJ/CVBCTw9ONTLDa5Q78ISyT0TATw="></Argument><Argument
|
62
|
+
Name="Item.0.ASIN" Value="1430216263"></Argument><Argument Name="HMAC" Value="QqoPIkmIkhVQ4/giDmvD0ouD1vo="></Argument><Argument
|
63
|
+
Name="Operation" Value="CartAdd"></Argument><Argument Name="CartId" Value="183-2540013-3419242"></Argument><Argument
|
64
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
65
|
+
Value="2011-11-17T12:26:34Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.119147062301636</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartAddRequest><CartId>183-2540013-3419242</CartId><HMAC>QqoPIkmIkhVQ4/giDmvD0ouD1vo=</HMAC><Items><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartAddRequest></Request><CartId>183-2540013-3419242</CartId><HMAC>QqoPIkmIkhVQ4/giDmvD0ouD1vo=</HMAC><URLEncodedHMAC>QqoPIkmIkhVQ4%2FgiDmvD0ouD1vo%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=183-2540013-3419242%26associate-id=ws%26hmac=QqoPIkmIkhVQ4/giDmvD0ouD1vo=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>7449</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$74.49</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7449</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$74.49</FormattedPrice></SubTotal><CartItem><CartItemId>U3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
|
66
|
+
iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>5278</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$52.78</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
67
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartAddResponse>'
|
68
|
+
http_version: '1.1'
|
@@ -0,0 +1,66 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=oTp3f7GGEEy6YMH6DrENoe6t1Fmzptnn+8KwZ8qsew0=&Timestamp=2011-11-17T12:26:32Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Thu, 17 Nov 2011 12:26:32 GMT
|
15
|
+
server:
|
16
|
+
- Server
|
17
|
+
content-type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding,User-Agent
|
21
|
+
nncoection:
|
22
|
+
- close
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0S7WKYDBB26VJRN0RQ7H</RequestId><Arguments><Argument
|
27
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
28
|
+
Name="Item.0.Quantity" Value="1"></Argument><Argument Name="Signature" Value="oTp3f7GGEEy6YMH6DrENoe6t1Fmzptnn+8KwZ8qsew0="></Argument><Argument
|
29
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Operation"
|
30
|
+
Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument
|
31
|
+
Name="Timestamp" Value="2011-11-17T12:26:32Z"></Argument><Argument Name="Version"
|
32
|
+
Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.156518936157227</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>176-7977764-6195833</CartId><HMAC>gO1ppsDorp9J2+meQ+kz8MwiLoc=</HMAC><URLEncodedHMAC>gO1ppsDorp9J2%2BmeQ%2Bkz8MwiLoc%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=176-7977764-6195833%26associate-id=ws%26hmac=gO1ppsDorp9J2%2BmeQ%2Bkz8MwiLoc=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
33
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
|
34
|
+
http_version: '1.1'
|
35
|
+
- !ruby/struct:VCR::HTTPInteraction
|
36
|
+
request: !ruby/struct:VCR::Request
|
37
|
+
method: :get
|
38
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&CartId=176-7977764-6195833&HMAC=gO1ppsDorp9J2+meQ+kz8MwiLoc=&Operation=CartClear&Service=AWSECommerceService&Signature=bK6MGyQSRjta57X8nDG1N88R5UjWfXroaC6TdWATP3o=&Timestamp=2011-11-17T12:26:32Z&Version=2010-11-01
|
39
|
+
body:
|
40
|
+
headers:
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
date:
|
47
|
+
- Thu, 17 Nov 2011 12:26:33 GMT
|
48
|
+
server:
|
49
|
+
- Server
|
50
|
+
content-type:
|
51
|
+
- text/xml;charset=UTF-8
|
52
|
+
vary:
|
53
|
+
- Accept-Encoding,User-Agent
|
54
|
+
nncoection:
|
55
|
+
- close
|
56
|
+
transfer-encoding:
|
57
|
+
- chunked
|
58
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartClearResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
59
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0PE5EGXJS09J48E24P5Y</RequestId><Arguments><Argument
|
60
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
61
|
+
Name="Signature" Value="bK6MGyQSRjta57X8nDG1N88R5UjWfXroaC6TdWATP3o="></Argument><Argument
|
62
|
+
Name="HMAC" Value="gO1ppsDorp9J2+meQ+kz8MwiLoc="></Argument><Argument Name="Operation"
|
63
|
+
Value="CartClear"></Argument><Argument Name="CartId" Value="176-7977764-6195833"></Argument><Argument
|
64
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
65
|
+
Value="2011-11-17T12:26:32Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0426430702209473</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartClearRequest><CartId>176-7977764-6195833</CartId><HMAC>gO1ppsDorp9J2+meQ+kz8MwiLoc=</HMAC></CartClearRequest></Request><CartId>176-7977764-6195833</CartId><HMAC>gO1ppsDorp9J2+meQ+kz8MwiLoc=</HMAC><URLEncodedHMAC>gO1ppsDorp9J2%2BmeQ%2Bkz8MwiLoc%3D</URLEncodedHMAC></Cart></CartClearResponse>
|
66
|
+
http_version: '1.1'
|
@@ -0,0 +1,67 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=uC3d2A48NLA2USxLY9YtkhmHV2AMf9GdLhmNC5az9cs=&Timestamp=2011-11-17T12:26:33Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Thu, 17 Nov 2011 12:26:33 GMT
|
15
|
+
server:
|
16
|
+
- Server
|
17
|
+
content-type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding,User-Agent
|
21
|
+
nncoection:
|
22
|
+
- close
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0JM8QZYZPGX221HRPDN1</RequestId><Arguments><Argument
|
27
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
28
|
+
Name="Item.0.Quantity" Value="1"></Argument><Argument Name="Signature" Value="uC3d2A48NLA2USxLY9YtkhmHV2AMf9GdLhmNC5az9cs="></Argument><Argument
|
29
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Operation"
|
30
|
+
Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument
|
31
|
+
Name="Timestamp" Value="2011-11-17T12:26:33Z"></Argument><Argument Name="Version"
|
32
|
+
Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.226226091384888</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>189-0274870-4904831</CartId><HMAC>McYyKJ1i0vUfKsUXUKzCdLEQqCM=</HMAC><URLEncodedHMAC>McYyKJ1i0vUfKsUXUKzCdLEQqCM%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=189-0274870-4904831%26associate-id=ws%26hmac=McYyKJ1i0vUfKsUXUKzCdLEQqCM=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
33
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
|
34
|
+
http_version: '1.1'
|
35
|
+
- !ruby/struct:VCR::HTTPInteraction
|
36
|
+
request: !ruby/struct:VCR::Request
|
37
|
+
method: :get
|
38
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&CartId=189-0274870-4904831&HMAC=McYyKJ1i0vUfKsUXUKzCdLEQqCM=&Operation=CartGet&Service=AWSECommerceService&Signature=YSFx7S0ol7MODAx4sYKWWwhTvKukBKWg5LYgkhsa6Cg=&Timestamp=2011-11-17T12:26:33Z&Version=2010-11-01
|
39
|
+
body:
|
40
|
+
headers:
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
date:
|
47
|
+
- Thu, 17 Nov 2011 12:26:33 GMT
|
48
|
+
server:
|
49
|
+
- Server
|
50
|
+
content-type:
|
51
|
+
- text/xml;charset=UTF-8
|
52
|
+
vary:
|
53
|
+
- Accept-Encoding,User-Agent
|
54
|
+
nncoection:
|
55
|
+
- close
|
56
|
+
transfer-encoding:
|
57
|
+
- chunked
|
58
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartGetResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
59
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0E8MY4VQHYHM1GRV4DDF</RequestId><Arguments><Argument
|
60
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
61
|
+
Name="Signature" Value="YSFx7S0ol7MODAx4sYKWWwhTvKukBKWg5LYgkhsa6Cg="></Argument><Argument
|
62
|
+
Name="HMAC" Value="McYyKJ1i0vUfKsUXUKzCdLEQqCM="></Argument><Argument Name="Operation"
|
63
|
+
Value="CartGet"></Argument><Argument Name="CartId" Value="189-0274870-4904831"></Argument><Argument
|
64
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
65
|
+
Value="2011-11-17T12:26:33Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.112384080886841</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartGetRequest><CartId>189-0274870-4904831</CartId><HMAC>McYyKJ1i0vUfKsUXUKzCdLEQqCM=</HMAC></CartGetRequest></Request><CartId>189-0274870-4904831</CartId><HMAC>McYyKJ1i0vUfKsUXUKzCdLEQqCM=</HMAC><URLEncodedHMAC>McYyKJ1i0vUfKsUXUKzCdLEQqCM%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=189-0274870-4904831%26associate-id=ws%26hmac=McYyKJ1i0vUfKsUXUKzCdLEQqCM=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
66
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartGetResponse>
|
67
|
+
http_version: '1.1'
|
@@ -0,0 +1,70 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=5sWyeKMk9jtVYoITVfJMjolGlzvDJ0fIk7rP4il81Lo=&Timestamp=2011-11-17T12:26:34Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Thu, 17 Nov 2011 12:26:35 GMT
|
15
|
+
server:
|
16
|
+
- Server
|
17
|
+
content-type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding,User-Agent
|
21
|
+
nncoection:
|
22
|
+
- close
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>080HDDH7QTD3055Y1KC4</RequestId><Arguments><Argument
|
27
|
+
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
28
|
+
Name="Item.0.Quantity" Value="1"></Argument><Argument Name="Signature" Value="5sWyeKMk9jtVYoITVfJMjolGlzvDJ0fIk7rP4il81Lo="></Argument><Argument
|
29
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Operation"
|
30
|
+
Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument
|
31
|
+
Name="Timestamp" Value="2011-11-17T12:26:34Z"></Argument><Argument Name="Version"
|
32
|
+
Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.120660066604614</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>179-8519106-5682114</CartId><HMAC>FZlklEs7+b0d3OlXs4HF618Lypo=</HMAC><URLEncodedHMAC>FZlklEs7%2Bb0d3OlXs4HF618Lypo%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=179-8519106-5682114%26associate-id=ws%26hmac=FZlklEs7%2Bb0d3OlXs4HF618Lypo=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
33
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
|
34
|
+
http_version: '1.1'
|
35
|
+
- !ruby/struct:VCR::HTTPInteraction
|
36
|
+
request: !ruby/struct:VCR::Request
|
37
|
+
method: :get
|
38
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&CartId=179-8519106-5682114&HMAC=FZlklEs7+b0d3OlXs4HF618Lypo=&Item.0.Action=SaveForLater&Item.0.CartItemId=U3G241HVLLB8N6&Item.1.CartItemId=U3G241HVLLB8N6&Item.1.Quantity=7&Operation=CartModify&Service=AWSECommerceService&Signature=1G9aMbTW/g2/3yHdXFQt6ehKkevQkpR0TdWoBMT7jjc=&Timestamp=2011-11-17T12:26:35Z&Version=2010-11-01
|
39
|
+
body:
|
40
|
+
headers:
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
date:
|
47
|
+
- Thu, 17 Nov 2011 12:26:35 GMT
|
48
|
+
server:
|
49
|
+
- Server
|
50
|
+
content-type:
|
51
|
+
- text/xml;charset=UTF-8
|
52
|
+
vary:
|
53
|
+
- Accept-Encoding,User-Agent
|
54
|
+
nncoection:
|
55
|
+
- close
|
56
|
+
transfer-encoding:
|
57
|
+
- chunked
|
58
|
+
body: <?xml version="1.0" encoding="UTF-8"?><CartModifyResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
59
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0G4P4JSJ2GV45GNQKQ6R</RequestId><Arguments><Argument
|
60
|
+
Name="AssociateTag"></Argument><Argument Name="Item.0.Action" Value="SaveForLater"></Argument><Argument
|
61
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature"
|
62
|
+
Value="1G9aMbTW/g2/3yHdXFQt6ehKkevQkpR0TdWoBMT7jjc="></Argument><Argument Name="Item.1.Quantity"
|
63
|
+
Value="7"></Argument><Argument Name="Item.1.CartItemId" Value="U3G241HVLLB8N6"></Argument><Argument
|
64
|
+
Name="HMAC" Value="FZlklEs7+b0d3OlXs4HF618Lypo="></Argument><Argument Name="Operation"
|
65
|
+
Value="CartModify"></Argument><Argument Name="CartId" Value="179-8519106-5682114"></Argument><Argument
|
66
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Item.0.CartItemId"
|
67
|
+
Value="U3G241HVLLB8N6"></Argument><Argument Name="Timestamp" Value="2011-11-17T12:26:35Z"></Argument><Argument
|
68
|
+
Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0692710876464844</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartModifyRequest><CartId>179-8519106-5682114</CartId><HMAC>FZlklEs7+b0d3OlXs4HF618Lypo=</HMAC><Items><Item><Action>SaveForLater</Action><CartItemId>U3G241HVLLB8N6</CartItemId></Item><Item><CartItemId>U3G241HVLLB8N6</CartItemId><Quantity>7</Quantity></Item></Items></CartModifyRequest></Request><CartId>179-8519106-5682114</CartId><HMAC>FZlklEs7+b0d3OlXs4HF618Lypo=</HMAC><URLEncodedHMAC>FZlklEs7%2Bb0d3OlXs4HF618Lypo%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=179-8519106-5682114%26associate-id=ws%26hmac=FZlklEs7%2Bb0d3OlXs4HF618Lypo=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>15197</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$151.97</FormattedPrice></SubTotal><SavedForLaterItems><SubTotal><Amount>15197</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$151.97</FormattedPrice></SubTotal><SavedForLaterItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><Quantity>7</Quantity><Title>Learn
|
69
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>15197</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$151.97</FormattedPrice></ItemTotal></SavedForLaterItem></SavedForLaterItems></Cart></CartModifyResponse>
|
70
|
+
http_version: '1.1'
|
data/spec/cassettes/{browse_node_599826.yml → asin/browse_node_should_lookup_a_browse_node.yml}
RENAMED
@@ -2,16 +2,16 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&BrowseNodeId=599826&Operation=BrowseNodeLookup&ResponseGroup=BrowseNodeInfo&Service=AWSECommerceService&Signature=
|
6
|
-
body:
|
7
|
-
headers:
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&BrowseNodeId=599826&Operation=BrowseNodeLookup&ResponseGroup=BrowseNodeInfo&Service=AWSECommerceService&Signature=X4LyyNaakwi097ag5RVYkNCYnPz6h/cPKH2d1T9e0JY=&Timestamp=2011-11-17T12:26:31Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
8
|
response: !ruby/struct:VCR::Response
|
9
9
|
status: !ruby/struct:VCR::ResponseStatus
|
10
10
|
code: 200
|
11
11
|
message: OK
|
12
12
|
headers:
|
13
13
|
date:
|
14
|
-
-
|
14
|
+
- Thu, 17 Nov 2011 12:26:31 GMT
|
15
15
|
server:
|
16
16
|
- Server
|
17
17
|
content-type:
|
@@ -23,13 +23,13 @@
|
|
23
23
|
transfer-encoding:
|
24
24
|
- chunked
|
25
25
|
body: <?xml version="1.0" encoding="UTF-8"?><BrowseNodeLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
-
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0WY3QFSNV26A8T5XKN46</RequestId><Arguments><Argument
|
27
27
|
Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
28
|
-
Name="Signature" Value="
|
28
|
+
Name="Signature" Value="X4LyyNaakwi097ag5RVYkNCYnPz6h/cPKH2d1T9e0JY="></Argument><Argument
|
29
29
|
Name="ResponseGroup" Value="BrowseNodeInfo"></Argument><Argument Name="Operation"
|
30
30
|
Value="BrowseNodeLookup"></Argument><Argument Name="BrowseNodeId" Value="599826"></Argument><Argument
|
31
|
-
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="
|
32
|
-
Value="
|
31
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
32
|
+
Value="2011-11-17T12:26:31Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0136559009552002</RequestProcessingTime></OperationRequest><BrowseNodes><Request><IsValid>True</IsValid><BrowseNodeLookupRequest><BrowseNodeId>599826</BrowseNodeId><ResponseGroup>BrowseNodeInfo</ResponseGroup></BrowseNodeLookupRequest></Request><BrowseNode><BrowseNodeId>599826</BrowseNodeId><Name>Comedy</Name><Ancestors><BrowseNode><BrowseNodeId>501230</BrowseNodeId><Name>Boxed
|
33
33
|
Sets</Name><Ancestors><BrowseNode><BrowseNodeId>2998369011</BrowseNodeId><Name>DVD
|
34
34
|
Custom Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644982011</BrowseNodeId><Name>Custom
|
35
35
|
Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644981011</BrowseNodeId><Name>Specialty
|
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://webservices.amazon.com:80/onca/xml?AWSAccessKeyId=AKIAJFA5X7RTOKFNPVZQ&AssociateTag=&Item.0.ASIN=1430218150&Item.0.Quantity=1&Item.1.ASIN=1430216263&Item.1.Quantity=2&Operation=CartCreate&Service=AWSECommerceService&Signature=G6GWgVk4He5hZUwdSRUzM/rkTmgLz18XIIoz8LTmTGI=&Timestamp=2011-11-17T12:26:31Z&Version=2010-11-01
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
response: !ruby/struct:VCR::Response
|
9
|
+
status: !ruby/struct:VCR::ResponseStatus
|
10
|
+
code: 200
|
11
|
+
message: OK
|
12
|
+
headers:
|
13
|
+
date:
|
14
|
+
- Thu, 17 Nov 2011 12:26:31 GMT
|
15
|
+
server:
|
16
|
+
- Server
|
17
|
+
content-type:
|
18
|
+
- text/xml;charset=UTF-8
|
19
|
+
vary:
|
20
|
+
- Accept-Encoding,User-Agent
|
21
|
+
nncoection:
|
22
|
+
- close
|
23
|
+
transfer-encoding:
|
24
|
+
- chunked
|
25
|
+
body: ! '<?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header
|
26
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>02NXJMQY1JB6X2M2A7DA</RequestId><Arguments><Argument
|
27
|
+
Name="AssociateTag"></Argument><Argument Name="Item.1.ASIN" Value="1430216263"></Argument><Argument
|
28
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Item.0.Quantity"
|
29
|
+
Value="1"></Argument><Argument Name="Signature" Value="G6GWgVk4He5hZUwdSRUzM/rkTmgLz18XIIoz8LTmTGI="></Argument><Argument
|
30
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="Item.1.Quantity"
|
31
|
+
Value="2"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument
|
32
|
+
Name="AWSAccessKeyId" Value="AKIAJFA5X7RTOKFNPVZQ"></Argument><Argument Name="Timestamp"
|
33
|
+
Value="2011-11-17T12:26:31Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.179362058639526</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartCreateRequest></Request><CartId>182-0307429-2228417</CartId><HMAC>o4jdWaqc/iYEV2kgKDc5XFcSccY=</HMAC><URLEncodedHMAC>o4jdWaqc%2FiYEV2kgKDc5XFcSccY%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=182-0307429-2228417%26associate-id=ws%26hmac=o4jdWaqc/iYEV2kgKDc5XFcSccY=%26SubscriptionId=AKIAJFA5X7RTOKFNPVZQ%26MergeCart=False</PurchaseURL><SubTotal><Amount>7449</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$74.49</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7449</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$74.49</FormattedPrice></SubTotal><CartItem><CartItemId>U3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
34
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></Price><ItemTotal><Amount>2171</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$21.71</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>U3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><MerchantId>ATVPDKIKX0DER</MerchantId><SellerId>A2R2RITDJNW1Q6</SellerId><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
|
35
|
+
iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>5278</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$52.78</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>'
|
36
|
+
http_version: '1.1'
|