asin 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -4
- data/CHANGELOG.md +10 -0
- data/Gemfile.lock +30 -40
- data/README.md +1 -7
- data/asin.gemspec +8 -11
- data/lib/asin/client.rb +0 -3
- data/lib/asin/configuration.rb +3 -3
- data/lib/asin/version.rb +1 -1
- data/rakefile.rb +2 -2
- data/spec/cassettes/asin/browse_node_should_lookup_a_browse_node.yml +34 -28
- data/spec/cassettes/asin/cart_should_create_a_cart.yml +34 -27
- data/spec/cassettes/asin/cart_with_an_existing_cart_should_add_items_to_a_cart.yml +93 -0
- data/spec/cassettes/asin/cart_with_an_existing_cart_should_clear_a_cart.yml +90 -0
- data/spec/cassettes/asin/cart_with_an_existing_cart_should_get_a_cart.yml +92 -0
- data/spec/cassettes/asin/cart_with_an_existing_cart_should_update_a_cart.yml +94 -0
- data/spec/cassettes/asin/lookup_and_search_should_have_metadata.yml +81 -74
- data/spec/cassettes/asin/lookup_and_search_should_lookup_a_book.yml +81 -74
- data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_books.yml +132 -124
- data/spec/cassettes/asin/lookup_and_search_should_lookup_multiple_response_groups.yml +38 -32
- data/spec/cassettes/asin/lookup_and_search_should_return_a_custom_item_class.yml +81 -74
- data/spec/cassettes/asin/lookup_and_search_should_return_a_mash_value.yml +81 -74
- data/spec/cassettes/asin/lookup_and_search_should_return_a_raw_value.yml +81 -74
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_a_book_with_fulltext.yml +586 -571
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_and_handle_a_single_result.yml +70 -64
- data/spec/cassettes/asin/lookup_and_search_should_search_keywords_never_mind_music.yml +114 -108
- data/spec/cassettes/asin/lookup_and_search_should_search_music.yml +29 -23
- data/spec/cassettes/asin/lookup_and_search_should_search_never_mind_music.yml +114 -108
- data/spec/cassettes/asin/similarity_should_find_similar_items.yml +626 -614
- data/spec/cassettes/asin/similarity_should_find_similar_items_for_multiple_asins_and_different_config.yml +66 -69
- data/spec/{browse_node_spec.rb → lib/browse_node_spec.rb} +0 -0
- data/spec/{cart_spec.rb → lib/cart_spec.rb} +0 -0
- data/spec/{config_spec.rb → lib/config_spec.rb} +1 -1
- data/spec/{search_spec.rb → lib/search_spec.rb} +0 -5
- data/spec/{similarity_spec.rb → lib/similarity_spec.rb} +1 -1
- data/spec/spec_helper.rb +2 -3
- metadata +38 -70
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_add_items_to_a_cart.yml +0 -84
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_clear_a_cart.yml +0 -81
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_get_a_cart.yml +0 -82
- data/spec/cassettes/asin/asin_cart_with_an_existing_cart_should_update_a_cart.yml +0 -85
- data/spec/cassettes/asin/lookup_and_search_should_return_a_rash_value.yml +0 -90
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,56 +1,48 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
asin (0.
|
5
|
-
confiture (
|
6
|
-
crack (
|
7
|
-
hashie (
|
8
|
-
httpi (
|
4
|
+
asin (1.0.0)
|
5
|
+
confiture (>= 0.1)
|
6
|
+
crack (>= 0.3)
|
7
|
+
hashie (>= 1.1)
|
8
|
+
httpi (>= 0.9)
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: http://rubygems.org/
|
12
12
|
specs:
|
13
|
-
addressable (2.2
|
13
|
+
addressable (2.3.2)
|
14
14
|
coderay (1.0.7)
|
15
15
|
confiture (0.1.2)
|
16
16
|
crack (0.3.1)
|
17
17
|
diff-lcs (1.1.3)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
ruby-progressbar (~> 0.0.10)
|
22
|
-
hashie (1.1.0)
|
23
|
-
httpclient (2.2.3)
|
24
|
-
httpi (0.9.7)
|
18
|
+
hashie (1.2.0)
|
19
|
+
httpclient (2.2.7)
|
20
|
+
httpi (1.1.1)
|
25
21
|
rack
|
26
|
-
method_source (0.
|
27
|
-
pry (0.9.
|
22
|
+
method_source (0.8)
|
23
|
+
pry (0.9.10)
|
28
24
|
coderay (~> 1.0.5)
|
29
|
-
method_source (~> 0.
|
30
|
-
slop (
|
31
|
-
pry (0.9.
|
25
|
+
method_source (~> 0.8)
|
26
|
+
slop (~> 3.3.1)
|
27
|
+
pry (0.9.10-java)
|
32
28
|
coderay (~> 1.0.5)
|
33
|
-
method_source (~> 0.
|
34
|
-
slop (
|
29
|
+
method_source (~> 0.8)
|
30
|
+
slop (~> 3.3.1)
|
35
31
|
spoon (~> 0.0)
|
36
32
|
rack (1.4.1)
|
37
33
|
rake (0.9.2.2)
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
rspec-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
rspec-
|
46
|
-
|
47
|
-
rspec-instafail (0.1.9)
|
48
|
-
rspec-mocks (2.7.0)
|
49
|
-
ruby-progressbar (0.0.10)
|
50
|
-
slop (2.4.4)
|
34
|
+
rspec (2.11.0)
|
35
|
+
rspec-core (~> 2.11.0)
|
36
|
+
rspec-expectations (~> 2.11.0)
|
37
|
+
rspec-mocks (~> 2.11.0)
|
38
|
+
rspec-core (2.11.1)
|
39
|
+
rspec-expectations (2.11.3)
|
40
|
+
diff-lcs (~> 1.1.3)
|
41
|
+
rspec-mocks (2.11.3)
|
42
|
+
slop (3.3.3)
|
51
43
|
spoon (0.0.1)
|
52
|
-
vcr (
|
53
|
-
webmock (1.8.
|
44
|
+
vcr (2.2.5)
|
45
|
+
webmock (1.8.10)
|
54
46
|
addressable (>= 2.2.7)
|
55
47
|
crack (>= 0.1.7)
|
56
48
|
|
@@ -60,11 +52,9 @@ PLATFORMS
|
|
60
52
|
|
61
53
|
DEPENDENCIES
|
62
54
|
asin!
|
63
|
-
|
64
|
-
httpclient (~> 2.2.3)
|
55
|
+
httpclient (>= 2.2.3)
|
65
56
|
pry (~> 0.9.9)
|
66
57
|
rake (~> 0.9.2.2)
|
67
|
-
|
68
|
-
|
69
|
-
vcr (~> 1.11.3)
|
58
|
+
rspec (~> 2.11.0)
|
59
|
+
vcr (~> 2.2.5)
|
70
60
|
webmock (~> 1.8.7)
|
data/README.md
CHANGED
@@ -14,13 +14,11 @@ The gem runs smoothly with Rails 3 and is tested against multiple rubies. See *.
|
|
14
14
|
|
15
15
|
gem install asin
|
16
16
|
gem install httpclient # optional, see HTTPI
|
17
|
-
gem install rash # optional, see Response Configuration
|
18
17
|
|
19
18
|
or in your Gemfile:
|
20
19
|
|
21
20
|
gem 'asin'
|
22
21
|
gem 'httpclient' # optional, see HTTPI
|
23
|
-
gem 'rash' # optional, see Response Configuration
|
24
22
|
|
25
23
|
## Configuration
|
26
24
|
|
@@ -127,11 +125,7 @@ but you can override this behavior for using your custom Classes:
|
|
127
125
|
client.configure :cart_type => YourCartClass
|
128
126
|
client.configure :node_type => YourNodeClass
|
129
127
|
|
130
|
-
You can also use built-in *:raw*, *:mash*
|
131
|
-
Since *rash* is an additional library, you need to add it to your gemfile if you want to use it:
|
132
|
-
|
133
|
-
gem 'rash'
|
134
|
-
|
128
|
+
You can also use built-in *:raw*, *:mash* types.
|
135
129
|
## HTTPI
|
136
130
|
|
137
131
|
ASIN uses [HTTPI](https://github.com/rubiii/httpi) as a HTTP-Client adapter.
|
data/asin.gemspec
CHANGED
@@ -9,8 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ['Peter Schröder']
|
10
10
|
s.email = ['phoetmail@googlemail.com']
|
11
11
|
s.homepage = 'http://github.com/phoet/asin'
|
12
|
-
s.summary
|
13
|
-
s.description = 'Amazon Simple INterface.'
|
12
|
+
s.description = s.summary = 'Amazon Simple INterface - Support for ItemLookup, SimilarityLookup, Search, BrowseNode and Cart Operations.'
|
14
13
|
|
15
14
|
s.rubyforge_project = "asin"
|
16
15
|
|
@@ -19,20 +18,18 @@ Gem::Specification.new do |s|
|
|
19
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
19
|
s.require_paths = ["lib"]
|
21
20
|
|
22
|
-
s.add_dependency('crack', '
|
23
|
-
s.add_dependency('hashie', '
|
24
|
-
s.add_dependency('httpi', '
|
25
|
-
s.add_dependency('confiture', '
|
21
|
+
s.add_dependency('crack', '>= 0.3')
|
22
|
+
s.add_dependency('hashie', '>= 1.1')
|
23
|
+
s.add_dependency('httpi', '>= 0.9')
|
24
|
+
s.add_dependency('confiture', '>= 0.1')
|
26
25
|
|
27
26
|
s.add_runtime_dependency('jruby-openssl') if RUBY_PLATFORM == 'java'
|
28
27
|
|
29
|
-
s.add_development_dependency('httpclient', '
|
30
|
-
s.add_development_dependency('rash', '~> 0.3.1')
|
28
|
+
s.add_development_dependency('httpclient', '>= 2.2.3')
|
31
29
|
|
32
30
|
s.add_development_dependency('rake', '~> 0.9.2.2')
|
33
|
-
s.add_development_dependency('vcr', '~>
|
31
|
+
s.add_development_dependency('vcr', '~> 2.2.5')
|
34
32
|
s.add_development_dependency('webmock', '~> 1.8.7')
|
35
|
-
s.add_development_dependency('rspec', '~> 2.
|
36
|
-
s.add_development_dependency('fuubar', '~> 0.0.5')
|
33
|
+
s.add_development_dependency('rspec', '~> 2.11.0')
|
37
34
|
s.add_development_dependency('pry', '~> 0.9.9')
|
38
35
|
end
|
data/lib/asin/client.rb
CHANGED
data/lib/asin/configuration.rb
CHANGED
@@ -23,9 +23,9 @@ module ASIN
|
|
23
23
|
# [host] the host, which defaults to 'webservices.amazon.com'
|
24
24
|
# [logger] a different logger than logging to STDERR (nil for no logging)
|
25
25
|
# [version] a custom version of the API calls. Default is 2010-11-01
|
26
|
-
# [item_type] a different class for SimpleItem, use :mash
|
27
|
-
# [cart_type] a different class for SimpleCart, use :mash
|
28
|
-
# [node_type] a different class for SimpleNode, use :mash
|
26
|
+
# [item_type] a different class for SimpleItem, use :mash for Hashie::Mash or :raw for a plain hash
|
27
|
+
# [cart_type] a different class for SimpleCart, use :mash for Hashie::Mash or :raw for a plain hash
|
28
|
+
# [node_type] a different class for SimpleNode, use :mash for Hashie::Mash or :raw for a plain hash
|
29
29
|
#
|
30
30
|
class Configuration
|
31
31
|
include Confiture::Configuration
|
data/lib/asin/version.rb
CHANGED
data/rakefile.rb
CHANGED
@@ -4,8 +4,8 @@ require "rspec/core/rake_task"
|
|
4
4
|
Bundler::GemHelper.install_tasks
|
5
5
|
|
6
6
|
RSpec::Core::RakeTask.new do |t|
|
7
|
-
t.rspec_opts = ["--format
|
7
|
+
t.rspec_opts = ["--format documentation", "--color"]
|
8
8
|
t.pattern = 'spec/**/*_spec.rb'
|
9
9
|
end
|
10
10
|
|
11
|
-
task :default
|
11
|
+
task :default => :spec
|
@@ -1,44 +1,50 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: http://webservices.amazon.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&BrowseNodeId=599826&Operation=BrowseNodeLookup&ResponseGroup=BrowseNodeInfo&Service=AWSECommerceService&Signature=UB+NuD8bReMd+8UFaQva+uJiYYsM6uefMtPTVysD2dU=&Timestamp=2012-09-25T20:04:51Z&Version=2011-08-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
10
12
|
code: 200
|
11
13
|
message: !binary |-
|
12
14
|
T0s=
|
13
15
|
headers:
|
14
|
-
!binary "
|
16
|
+
!binary "RGF0ZQ==":
|
15
17
|
- !binary |-
|
16
|
-
|
17
|
-
!binary "
|
18
|
+
VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1MyBHTVQ=
|
19
|
+
!binary "U2VydmVy":
|
18
20
|
- !binary |-
|
19
21
|
U2VydmVy
|
20
|
-
!binary "
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
21
23
|
- !binary |-
|
22
24
|
dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
|
23
|
-
!binary "
|
25
|
+
!binary "VmFyeQ==":
|
24
26
|
- !binary |-
|
25
27
|
QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
|
26
|
-
!binary "
|
28
|
+
!binary "Tm5jb2VjdGlvbg==":
|
27
29
|
- !binary |-
|
28
30
|
Y2xvc2U=
|
29
|
-
!binary "
|
31
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
30
32
|
- !binary |-
|
31
33
|
Y2h1bmtlZA==
|
32
|
-
body:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: <BrowseNodeLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><RequestId>8189583a-defc-4fef-8ac0-c7347b03233e</RequestId><Arguments><Argument
|
37
|
+
Name="Operation" Value="BrowseNodeLookup"/><Argument Name="Service" Value="AWSECommerceService"/><Argument
|
38
|
+
Name="Signature" Value="UB+NuD8bReMd+8UFaQva+uJiYYsM6uefMtPTVysD2dU="/><Argument
|
39
|
+
Name="AssociateTag" Value="phoet-20"/><Argument Name="Version" Value="2011-08-01"/><Argument
|
40
|
+
Name="BrowseNodeId" Value="599826"/><Argument Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"/><Argument
|
41
|
+
Name="Timestamp" Value="2012-09-25T20:04:51Z"/><Argument Name="ResponseGroup"
|
42
|
+
Value="BrowseNodeInfo"/></Arguments><RequestProcessingTime>0.009791</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
|
43
|
+
Sets</Name><Ancestors><BrowseNode><BrowseNodeId>2998369011</BrowseNodeId><Name>DVD
|
44
|
+
Custom Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644982011</BrowseNodeId><Name>Custom
|
45
|
+
Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2644981011</BrowseNodeId><Name>Specialty
|
46
|
+
Stores</Name><Ancestors><BrowseNode><BrowseNodeId>2625373011</BrowseNodeId><Name>Movies
|
47
|
+
& TV</Name></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></Ancestors></BrowseNode></BrowseNodes></BrowseNodeLookupResponse>
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 25 Sep 2012 20:04:51 GMT
|
50
|
+
recorded_with: VCR 2.2.5
|
@@ -1,43 +1,50 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
|
4
|
-
method:
|
5
|
-
uri: http://webservices.amazon.com
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&Item.0.ASIN=1430218150&Item.0.Quantity=1&Item.1.ASIN=1430216263&Item.1.Quantity=2&Operation=CartCreate&Service=AWSECommerceService&Signature=flV22mEdFjJLQhXrliGTeo2KaTfDh0f2lc80z/GKrEM=&Timestamp=2012-09-25T20:04:51Z&Version=2011-08-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
10
12
|
code: 200
|
11
13
|
message: !binary |-
|
12
14
|
T0s=
|
13
15
|
headers:
|
14
|
-
!binary "
|
16
|
+
!binary "RGF0ZQ==":
|
15
17
|
- !binary |-
|
16
|
-
|
17
|
-
!binary "
|
18
|
+
VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1MyBHTVQ=
|
19
|
+
!binary "U2VydmVy":
|
18
20
|
- !binary |-
|
19
21
|
U2VydmVy
|
20
|
-
!binary "
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
21
23
|
- !binary |-
|
22
24
|
dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
|
23
|
-
!binary "
|
25
|
+
!binary "VmFyeQ==":
|
24
26
|
- !binary |-
|
25
27
|
QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
|
26
|
-
!binary "
|
28
|
+
!binary "Tm5jb2VjdGlvbg==":
|
27
29
|
- !binary |-
|
28
30
|
Y2xvc2U=
|
29
|
-
!binary "
|
31
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
30
32
|
- !binary |-
|
31
33
|
Y2h1bmtlZA==
|
32
|
-
body:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: ! '<?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
|
37
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>1HQKRF1W2YT6MSR5Y5PA</RequestId><Arguments><Argument
|
38
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Item.0.Quantity"
|
39
|
+
Value="1"></Argument><Argument Name="Item.1.Quantity" Value="2"></Argument><Argument
|
40
|
+
Name="Operation" Value="CartCreate"></Argument><Argument Name="Timestamp"
|
41
|
+
Value="2012-09-25T20:04:51Z"></Argument><Argument Name="Version" Value="2011-08-01"></Argument><Argument
|
42
|
+
Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Item.1.ASIN"
|
43
|
+
Value="1430216263"></Argument><Argument Name="Signature" Value="flV22mEdFjJLQhXrliGTeo2KaTfDh0f2lc80z/GKrEM="></Argument><Argument
|
44
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="AWSAccessKeyId"
|
45
|
+
Value="AKIAIBNLWSCV5OXMPD6A"></Argument></Arguments><RequestProcessingTime>0.18497109413147</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>178-4406165-1533801</CartId><HMAC>j34Oo0M/z1qqCknonoH2sLHC7rc=</HMAC><URLEncodedHMAC>j34Oo0M%2Fz1qqCknonoH2sLHC7rc%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=178-4406165-1533801%26associate-id=phoet-20%26hmac=j34Oo0M/z1qqCknonoH2sLHC7rc=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
46
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>C3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
|
47
|
+
iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2594</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$25.94</FormattedPrice></Price><ItemTotal><Amount>5188</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$51.88</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>'
|
48
|
+
http_version:
|
49
|
+
recorded_at: Tue, 25 Sep 2012 20:04:52 GMT
|
50
|
+
recorded_with: VCR 2.2.5
|
@@ -0,0 +1,93 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&Item.0.ASIN=1430218150&Item.0.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=cfMtsaSBmsdjvivwfY3b8qLvb4xEUy4zU2c1a++MU/8=&Timestamp=2012-09-25T20:04:54Z&Version=2011-08-01
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers: {}
|
10
|
+
response:
|
11
|
+
status:
|
12
|
+
code: 200
|
13
|
+
message: !binary |-
|
14
|
+
T0s=
|
15
|
+
headers:
|
16
|
+
!binary "RGF0ZQ==":
|
17
|
+
- !binary |-
|
18
|
+
VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1NiBHTVQ=
|
19
|
+
!binary "U2VydmVy":
|
20
|
+
- !binary |-
|
21
|
+
U2VydmVy
|
22
|
+
!binary "Q29udGVudC1UeXBl":
|
23
|
+
- !binary |-
|
24
|
+
dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
|
25
|
+
!binary "VmFyeQ==":
|
26
|
+
- !binary |-
|
27
|
+
QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
|
28
|
+
!binary "Tm5jb2VjdGlvbg==":
|
29
|
+
- !binary |-
|
30
|
+
Y2xvc2U=
|
31
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
32
|
+
- !binary |-
|
33
|
+
Y2h1bmtlZA==
|
34
|
+
body:
|
35
|
+
encoding: US-ASCII
|
36
|
+
string: <?xml version="1.0" encoding="UTF-8"?><CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
|
37
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>08794EK0TGS8F6R0J6N5</RequestId><Arguments><Argument
|
38
|
+
Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Item.0.Quantity"
|
39
|
+
Value="1"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument
|
40
|
+
Name="Timestamp" Value="2012-09-25T20:04:54Z"></Argument><Argument Name="Version"
|
41
|
+
Value="2011-08-01"></Argument><Argument Name="AssociateTag" Value="phoet-20"></Argument><Argument
|
42
|
+
Name="Signature" Value="cfMtsaSBmsdjvivwfY3b8qLvb4xEUy4zU2c1a++MU/8="></Argument><Argument
|
43
|
+
Name="Item.0.ASIN" Value="1430218150"></Argument><Argument Name="AWSAccessKeyId"
|
44
|
+
Value="AKIAIBNLWSCV5OXMPD6A"></Argument></Arguments><RequestProcessingTime>0.131492137908936</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><ASIN>1430218150</ASIN><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><URLEncodedHMAC>pUpWk87PTHSRkzYY1JZMQ64viG4%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=192-6352781-1036323%26associate-id=phoet-20%26hmac=pUpWk87PTHSRkzYY1JZMQ64viG4=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></SubTotal><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
45
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
|
46
|
+
http_version:
|
47
|
+
recorded_at: Tue, 25 Sep 2012 20:04:55 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: http://webservices.amazon.com/onca/xml?AWSAccessKeyId=AKIAIBNLWSCV5OXMPD6A&AssociateTag=phoet-20&CartId=192-6352781-1036323&HMAC=pUpWk87PTHSRkzYY1JZMQ64viG4=&Item.0.ASIN=1430216263&Item.0.Quantity=2&Operation=CartAdd&Service=AWSECommerceService&Signature=3izDgv/ClrGF57ZNaa/GDkN03FwJRScT3Y6C79pmIqM=&Timestamp=2012-09-25T20:04:55Z&Version=2011-08-01
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers: {}
|
55
|
+
response:
|
56
|
+
status:
|
57
|
+
code: 200
|
58
|
+
message: !binary |-
|
59
|
+
T0s=
|
60
|
+
headers:
|
61
|
+
!binary "RGF0ZQ==":
|
62
|
+
- !binary |-
|
63
|
+
VHVlLCAyNSBTZXAgMjAxMiAyMDowNDo1NiBHTVQ=
|
64
|
+
!binary "U2VydmVy":
|
65
|
+
- !binary |-
|
66
|
+
U2VydmVy
|
67
|
+
!binary "Q29udGVudC1UeXBl":
|
68
|
+
- !binary |-
|
69
|
+
dGV4dC94bWw7Y2hhcnNldD1VVEYtOA==
|
70
|
+
!binary "VmFyeQ==":
|
71
|
+
- !binary |-
|
72
|
+
QWNjZXB0LUVuY29kaW5nLFVzZXItQWdlbnQ=
|
73
|
+
!binary "Tm5jb2VjdGlvbg==":
|
74
|
+
- !binary |-
|
75
|
+
Y2xvc2U=
|
76
|
+
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
77
|
+
- !binary |-
|
78
|
+
Y2h1bmtlZA==
|
79
|
+
body:
|
80
|
+
encoding: US-ASCII
|
81
|
+
string: ! '<?xml version="1.0" encoding="UTF-8"?><CartAddResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2011-08-01"><OperationRequest><HTTPHeaders><Header
|
82
|
+
Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>0KE8K85TK8SJ889BN77G</RequestId><Arguments><Argument
|
83
|
+
Name="AssociateTag" Value="phoet-20"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument
|
84
|
+
Name="Item.0.Quantity" Value="2"></Argument><Argument Name="Signature" Value="3izDgv/ClrGF57ZNaa/GDkN03FwJRScT3Y6C79pmIqM="></Argument><Argument
|
85
|
+
Name="Item.0.ASIN" Value="1430216263"></Argument><Argument Name="HMAC" Value="pUpWk87PTHSRkzYY1JZMQ64viG4="></Argument><Argument
|
86
|
+
Name="Operation" Value="CartAdd"></Argument><Argument Name="CartId" Value="192-6352781-1036323"></Argument><Argument
|
87
|
+
Name="AWSAccessKeyId" Value="AKIAIBNLWSCV5OXMPD6A"></Argument><Argument Name="Timestamp"
|
88
|
+
Value="2012-09-25T20:04:55Z"></Argument><Argument Name="Version" Value="2011-08-01"></Argument></Arguments><RequestProcessingTime>0.154760837554932</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartAddRequest><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><Items><Item><ASIN>1430216263</ASIN><Quantity>2</Quantity></Item></Items></CartAddRequest></Request><CartId>192-6352781-1036323</CartId><HMAC>pUpWk87PTHSRkzYY1JZMQ64viG4=</HMAC><URLEncodedHMAC>pUpWk87PTHSRkzYY1JZMQ64viG4%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=192-6352781-1036323%26associate-id=phoet-20%26hmac=pUpWk87PTHSRkzYY1JZMQ64viG4=%26SubscriptionId=AKIAIBNLWSCV5OXMPD6A%26MergeCart=False</PurchaseURL><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>7827</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$78.27</FormattedPrice></SubTotal><CartItem><CartItemId>C3CFEHHIPJNW3L</CartItemId><ASIN>1430216263</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>2</Quantity><Title>Beginning
|
89
|
+
iPhone Development: Exploring the iPhone SDK</Title><ProductGroup>Book</ProductGroup><Price><Amount>2594</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$25.94</FormattedPrice></Price><ItemTotal><Amount>5188</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$51.88</FormattedPrice></ItemTotal></CartItem><CartItem><CartItemId>C3G241HVLLB8N6</CartItemId><ASIN>1430218150</ASIN><SellerNickname>Amazon.com</SellerNickname><Quantity>1</Quantity><Title>Learn
|
90
|
+
Objective-C on the Mac (Learn Series)</Title><ProductGroup>Book</ProductGroup><Price><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></Price><ItemTotal><Amount>2639</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$26.39</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartAddResponse>'
|
91
|
+
http_version:
|
92
|
+
recorded_at: Tue, 25 Sep 2012 20:04:55 GMT
|
93
|
+
recorded_with: VCR 2.2.5
|