sucker 1.4.1 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. data/README.md +17 -54
  2. data/lib/sucker/hash.rb +1 -0
  3. data/lib/sucker/hash.rbc +26 -26
  4. data/lib/sucker/parameters.rb +4 -0
  5. data/lib/sucker/parameters.rbc +95 -30
  6. data/lib/sucker/request.rb +35 -12
  7. data/lib/sucker/request.rbc +420 -244
  8. data/lib/sucker/response.rb +3 -3
  9. data/lib/sucker/response.rbc +91 -65
  10. data/lib/sucker/version.rb +1 -1
  11. data/lib/sucker/version.rbc +1 -1
  12. data/lib/sucker.rb +1 -1
  13. data/spec/fixtures/cassette_library/cartcreate/e3e2f9b71afba67619a95c7178178595.yml +26 -0
  14. data/spec/fixtures/cassette_library/cartcreate/f8fe45cc6b78ac1aac675a8f76d5f7d9.yml +26 -0
  15. data/spec/fixtures/cassette_library/{0415246334.yml → itemlookup/0547439fa22ec1178508f61bc8fb1dfb.yml} +3 -3
  16. data/spec/fixtures/cassette_library/itemlookup/2656b1813249aff0d4febb01044962ff.yml +26 -0
  17. data/spec/fixtures/cassette_library/itemlookup/4908294851a4df13269707e9f6507f91.yml +26 -0
  18. data/spec/fixtures/cassette_library/itemlookup/49690856d2b9cb358fc505dc52862acf.yml +26 -0
  19. data/spec/fixtures/cassette_library/itemlookup/5670727fa0cb9f30464e41aa1346c91c.yml +26 -0
  20. data/spec/fixtures/cassette_library/{b000aspues.yml → itemlookup/67b3c825b2902b511412057442db6e91.yml} +3 -3
  21. data/spec/fixtures/cassette_library/itemlookup/6e6b1dc74378e2e1118713e254191fc0.yml +26 -0
  22. data/spec/fixtures/cassette_library/itemlookup/742f3458144935c0a3320be6e842a17c.yml +26 -0
  23. data/spec/fixtures/cassette_library/itemlookup/76f548183c2804a74d0ed7e0bfbd6d4a.yml +26 -0
  24. data/spec/fixtures/cassette_library/itemlookup/8286b763b726d3dc1fc992023e639b9b.yml +151 -0
  25. data/spec/fixtures/cassette_library/{816614024.yml → itemlookup/9853d1f8ae05d5501df4e4390c5abeae.yml} +18 -18
  26. data/spec/fixtures/cassette_library/itemlookup/9d82768fe80b09c4a3697c608e5edebe.yml +26 -0
  27. data/spec/fixtures/cassette_library/{482224816x.yml → itemlookup/b6c76ad93b17b86adb932b9b97c1f019.yml} +3 -3
  28. data/spec/fixtures/cassette_library/itemlookup/d3d6ea869d31173526f48907bff752a3.yml +26 -0
  29. data/spec/fixtures/cassette_library/itemlookup/d8ad346710c3b479febcf58e67fea7ef.yml +26 -0
  30. data/spec/fixtures/cassette_library/{0394751221.yml → itemlookup/e880c4cb3dd56cdfa2161a71fece15ac.yml} +3 -3
  31. data/spec/fixtures/cassette_library/itemsearch/1c4db6b83580a7498b87d7502c249307.yml +26 -0
  32. data/spec/fixtures/cassette_library/itemsearch/295b9eadfb69d55e1c0acb06220e0b6e.yml +26 -0
  33. data/spec/fixtures/cassette_library/itemsearch/30d2bff757af125e31b82c47380b98ba.yml +26 -0
  34. data/spec/fixtures/cassette_library/itemsearch/34098006ffbbd9570b2c2f9ce23df9f3.yml +26 -0
  35. data/spec/fixtures/cassette_library/itemsearch/4c1e50d070821f4eb9fe3961aba105ee.yml +26 -0
  36. data/spec/fixtures/cassette_library/itemsearch/5a15430433ab94c70466eb61c919a028.yml +26 -0
  37. data/spec/fixtures/cassette_library/itemsearch/8fd40b929a9ed46e2b38ac905c8ab53a.yml +26 -0
  38. data/spec/fixtures/cassette_library/itemsearch/e9a6659c2b464d7388c3831c6425a526.yml +26 -0
  39. data/spec/fixtures/cassette_library/sellerlistingsearch/6b38af058d6a0bda696f49de13cfd343.yml +26 -0
  40. data/spec/fixtures/cassette_library/{a2h6nh4sqyfz4m.yml → sellerlistingsearch/c92200a4bd3d6d9023fa6317a780589b.yml} +3 -3
  41. data/spec/fixtures/cassette_library/sellerlistingsearch/cb25caadce96ac3de70b69b76431d730.yml +26 -0
  42. data/spec/fixtures/cassette_library/sellerlistingsearch/e1261838e1754870ffd309dd78eb7374.yml +26 -0
  43. data/spec/fixtures/cassette_library/spec/sucker/request.yml +4 -4
  44. data/spec/fixtures/cassette_library/spec/sucker/response.yml +3 -3
  45. data/spec/sucker/request_spec.rb +35 -15
  46. data/spec/sucker/request_spec.rbc +660 -166
  47. data/spec/sucker/response_spec.rb +4 -4
  48. data/spec/sucker/response_spec.rbc +133 -269
  49. metadata +75 -36
  50. data/spec/fixtures/cassette_library/0679753354.yml +0 -26
  51. data/spec/fixtures/cassette_library/0816614024-0007218095.yml +0 -26
  52. data/spec/fixtures/cassette_library/0816614024-0143105825.yml +0 -26
  53. data/spec/fixtures/cassette_library/0816614024.yml +0 -26
  54. data/spec/fixtures/cassette_library/a2jyso6w6kep83.yml +0 -26
  55. data/spec/fixtures/cassette_library/author-lacan-or-deleuze-and-not-fiction.yml +0 -26
  56. data/spec/fixtures/cassette_library/deleuze-binding-kindle.yml +0 -26
  57. data/spec/fixtures/cassette_library/deleuze.yml +0 -26
  58. data/spec/fixtures/cassette_library/george-orwell.yml +0 -26
  59. data/spec/fixtures/cassette_library/offer-listing-id.yml +0 -26
@@ -64,17 +64,17 @@ module Sucker
64
64
 
65
65
  # Checks if the HTTP response is OK.
66
66
  #
67
- # response = worker.get
67
+ # response = request.get
68
68
  # response.valid?
69
69
  # => true
70
70
  #
71
71
  def valid?
72
- code == '200'
72
+ code == 200
73
73
  end
74
74
 
75
75
  # The XML document.
76
76
  #
77
- # response = worker.get
77
+ # response = request.get
78
78
  # response.xml
79
79
  #
80
80
  def xml
@@ -400,7 +400,7 @@ f
400
400
  I
401
401
  0
402
402
  I
403
- 50
403
+ 54
404
404
  I
405
405
  1
406
406
  I
@@ -408,7 +408,7 @@ I
408
408
  I
409
409
  f
410
410
  I
411
- 50
411
+ 54
412
412
  I
413
413
  10
414
414
  I
@@ -440,7 +440,11 @@ x
440
440
  4
441
441
  each
442
442
  i
443
- 13
443
+ 17
444
+ 95
445
+ 19
446
+ 1
447
+ 15
444
448
  5
445
449
  20
446
450
  0
@@ -455,9 +459,9 @@ i
455
459
  0
456
460
  11
457
461
  I
458
- 3
462
+ 4
459
463
  I
460
- 1
464
+ 2
461
465
  I
462
466
  1
463
467
  I
@@ -481,18 +485,22 @@ x
481
485
  4
482
486
  each
483
487
  i
484
- 9
488
+ 13
485
489
  57
486
490
  19
487
491
  0
488
492
  15
493
+ 21
494
+ 1
495
+ 1
489
496
  20
490
497
  0
491
- 60
498
+ 49
499
+ 0
492
500
  1
493
501
  11
494
502
  I
495
- 3
503
+ 4
496
504
  I
497
505
  1
498
506
  I
@@ -501,15 +509,18 @@ I
501
509
  1
502
510
  n
503
511
  p
504
- 0
512
+ 1
513
+ x
514
+ 4
515
+ call
505
516
  p
506
517
  3
507
518
  I
508
519
  0
509
520
  I
510
- 19
521
+ 1a
511
522
  I
512
- 9
523
+ d
513
524
  x
514
525
  53
515
526
  /Users/hakanensari/code/sucker/lib/sucker/response.rb
@@ -526,22 +537,25 @@ p
526
537
  I
527
538
  -1
528
539
  I
529
- 18
540
+ 19
530
541
  I
531
- 0
542
+ 4
532
543
  I
533
- 19
544
+ 1a
534
545
  I
535
- d
546
+ 11
536
547
  x
537
548
  53
538
549
  /Users/hakanensari/code/sucker/lib/sucker/response.rb
539
550
  p
540
- 1
551
+ 2
541
552
  x
542
553
  4
543
554
  path
544
555
  x
556
+ 5
557
+ block
558
+ x
545
559
  6
546
560
  errors
547
561
  M
@@ -584,11 +598,11 @@ p
584
598
  I
585
599
  -1
586
600
  I
587
- 1d
601
+ 1e
588
602
  I
589
603
  0
590
604
  I
591
- 1e
605
+ 1f
592
606
  I
593
607
  9
594
608
  x
@@ -698,11 +712,15 @@ x
698
712
  8
699
713
  from_xml
700
714
  p
701
- 3
715
+ 5
702
716
  I
703
717
  0
704
718
  I
705
- 26
719
+ 28
720
+ I
721
+ 4
722
+ I
723
+ 29
706
724
  I
707
725
  d
708
726
  x
@@ -721,11 +739,11 @@ p
721
739
  I
722
740
  -1
723
741
  I
724
- 25
742
+ 27
725
743
  I
726
744
  0
727
745
  I
728
- 26
746
+ 28
729
747
  I
730
748
  15
731
749
  x
@@ -734,8 +752,8 @@ x
734
752
  p
735
753
  1
736
754
  x
737
- 4
738
- path
755
+ 9
756
+ attribute
739
757
  x
740
758
  2
741
759
  []
@@ -789,11 +807,11 @@ p
789
807
  I
790
808
  -1
791
809
  I
792
- 2c
810
+ 2f
793
811
  I
794
812
  0
795
813
  I
796
- 2d
814
+ 30
797
815
  I
798
816
  a
799
817
  x
@@ -812,7 +830,11 @@ x
812
830
  3
813
831
  map
814
832
  i
815
- 13
833
+ 17
834
+ 95
835
+ 19
836
+ 1
837
+ 15
816
838
  5
817
839
  20
818
840
  0
@@ -827,9 +849,9 @@ i
827
849
  0
828
850
  11
829
851
  I
830
- 3
852
+ 4
831
853
  I
832
- 1
854
+ 2
833
855
  I
834
856
  1
835
857
  I
@@ -853,18 +875,22 @@ x
853
875
  3
854
876
  map
855
877
  i
856
- 9
878
+ 13
857
879
  57
858
880
  19
859
881
  0
860
882
  15
883
+ 21
884
+ 1
885
+ 1
861
886
  20
862
887
  0
863
- 60
888
+ 49
889
+ 0
864
890
  1
865
891
  11
866
892
  I
867
- 3
893
+ 4
868
894
  I
869
895
  1
870
896
  I
@@ -873,15 +899,18 @@ I
873
899
  1
874
900
  n
875
901
  p
876
- 0
902
+ 1
903
+ x
904
+ 4
905
+ call
877
906
  p
878
907
  3
879
908
  I
880
909
  0
881
910
  I
882
- 36
911
+ 39
883
912
  I
884
- 9
913
+ d
885
914
  x
886
915
  53
887
916
  /Users/hakanensari/code/sucker/lib/sucker/response.rb
@@ -898,22 +927,25 @@ p
898
927
  I
899
928
  -1
900
929
  I
901
- 35
930
+ 38
902
931
  I
903
- 0
932
+ 4
904
933
  I
905
- 36
934
+ 39
906
935
  I
907
- d
936
+ 11
908
937
  x
909
938
  53
910
939
  /Users/hakanensari/code/sucker/lib/sucker/response.rb
911
940
  p
912
- 1
941
+ 2
913
942
  x
914
943
  4
915
944
  path
916
945
  x
946
+ 5
947
+ block
948
+ x
917
949
  7
918
950
  to_hash
919
951
  M
@@ -961,11 +993,11 @@ p
961
993
  I
962
994
  -1
963
995
  I
964
- 3a
996
+ 3d
965
997
  I
966
998
  0
967
999
  I
968
- 3b
1000
+ 3e
969
1001
  I
970
1002
  a
971
1003
  x
@@ -1015,11 +1047,11 @@ p
1015
1047
  I
1016
1048
  -1
1017
1049
  I
1018
- 44
1050
+ 47
1019
1051
  I
1020
1052
  0
1021
1053
  I
1022
- 45
1054
+ 48
1023
1055
  I
1024
1056
  8
1025
1057
  x
@@ -1038,12 +1070,12 @@ x
1038
1070
  3
1039
1071
  xml
1040
1072
  i
1041
- 21
1073
+ 18
1042
1074
  39
1043
1075
  0
1044
1076
  13
1045
1077
  10
1046
- 20
1078
+ 17
1047
1079
  15
1048
1080
  45
1049
1081
  1
@@ -1053,9 +1085,6 @@ i
1053
1085
  3
1054
1086
  49
1055
1087
  4
1056
- 0
1057
- 49
1058
- 5
1059
1088
  1
1060
1089
  38
1061
1090
  0
@@ -1070,7 +1099,7 @@ I
1070
1099
  0
1071
1100
  n
1072
1101
  p
1073
- 6
1102
+ 5
1074
1103
  x
1075
1104
  4
1076
1105
  @xml
@@ -1082,9 +1111,6 @@ x
1082
1111
  4
1083
1112
  body
1084
1113
  x
1085
- 4
1086
- dump
1087
- x
1088
1114
  3
1089
1115
  XML
1090
1116
  p
@@ -1092,13 +1118,13 @@ p
1092
1118
  I
1093
1119
  -1
1094
1120
  I
1095
- 4c
1121
+ 50
1096
1122
  I
1097
1123
  0
1098
1124
  I
1099
- 4d
1125
+ 51
1100
1126
  I
1101
- 15
1127
+ 12
1102
1128
  x
1103
1129
  53
1104
1130
  /Users/hakanensari/code/sucker/lib/sucker/response.rb
@@ -1121,39 +1147,39 @@ f
1121
1147
  I
1122
1148
  20
1123
1149
  I
1124
- 18
1150
+ 19
1125
1151
  I
1126
1152
  2e
1127
1153
  I
1128
- 1d
1154
+ 1e
1129
1155
  I
1130
1156
  3c
1131
1157
  I
1132
- 25
1158
+ 27
1133
1159
  I
1134
1160
  4a
1135
1161
  I
1136
- 29
1162
+ 2c
1137
1163
  I
1138
1164
  54
1139
1165
  I
1140
- 2c
1166
+ 2f
1141
1167
  I
1142
1168
  62
1143
1169
  I
1144
- 35
1170
+ 38
1145
1171
  I
1146
1172
  70
1147
1173
  I
1148
- 3a
1174
+ 3d
1149
1175
  I
1150
1176
  7e
1151
1177
  I
1152
- 44
1178
+ 47
1153
1179
  I
1154
1180
  8c
1155
1181
  I
1156
- 4c
1182
+ 50
1157
1183
  I
1158
1184
  9a
1159
1185
  x
@@ -1,3 +1,3 @@
1
1
  module Sucker
2
- VERSION = '1.4.1'
2
+ VERSION = '1.5.0'
3
3
  end
@@ -95,7 +95,7 @@ x
95
95
  VERSION
96
96
  s
97
97
  5
98
- 1.4.0
98
+ 1.5.0
99
99
  x
100
100
  9
101
101
  const_set
data/lib/sucker.rb CHANGED
@@ -8,7 +8,7 @@ module Sucker
8
8
 
9
9
  # Initializes a request object.
10
10
  #
11
- # worker = Sucker.new(
11
+ # request = Sucker.new(
12
12
  # :locale => :us,
13
13
  # :key => api_key,
14
14
  # :secret => api_secret)
@@ -0,0 +1,26 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&Item.1.OfferListingId=foobar&Item.1.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=YAsmig0G7pR2qUtXI+VYjXkVTndnX0nYQMZiXTEagSA=&Timestamp=2011-04-26T08:51:47Z&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
+ content-type:
14
+ - text/xml;charset=UTF-8
15
+ server:
16
+ - Server
17
+ date:
18
+ - Tue, 26 Apr 2011 08:51:47 GMT
19
+ nncoection:
20
+ - close
21
+ vary:
22
+ - Accept-Encoding,User-Agent
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 Name="UserAgent" Value="Jakarta Commons-HttpClient/3.0.1"></Header></HTTPHeaders><RequestId>07TKGTVFG241DFT831QR</RequestId><Arguments><Argument Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="YAsmig0G7pR2qUtXI+VYjXkVTndnX0nYQMZiXTEagSA="></Argument><Argument Name="Item.1.OfferListingId" Value="foobar"></Argument><Argument Name="Item.1.Quantity" Value="1"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Version" Value="2010-11-01"></Argument><Argument Name="Timestamp" Value="2011-04-26T08:51:47Z"></Argument></Arguments><RequestProcessingTime>0.0442519187927246</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><OfferListingId>foobar</OfferListingId><Quantity>1</Quantity></Item></Items></CartCreateRequest><Errors><Error><Code>AWS.InternalError</Code><Message>We are unable to process your request at this time. Please retry your request.</Message></Error></Errors></Request></Cart></CartCreateResponse>
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&Item.1.OfferListingId=mg7dbfIPL3rTrnxR6R9I4u0glPrEbbdF6p7X9tXpyhAMBRUwGLGi1mOQoClXMciAFenOXG9dZXGSPTfjRoQXma9yOTmeHhYqwPOEPHOz2XHMgooCZPjeQRfgRYQe6DBEd1qz%252Fu1G0ew%253D&Item.1.Quantity=1&Operation=CartCreate&Service=AWSECommerceService&Signature=KOWNiGbBwuhtK2gCzvhY4zZEtjQpJfE5v0FRd8f+pBs=&Timestamp=2011-04-06T11:09:11Z&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
+ - Wed, 06 Apr 2011 11:09:11 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 Name="UserAgent" Value="Ruby"></Header></HTTPHeaders><RequestId>1168G1DJCNJD2Z5YBXCG</RequestId><Arguments><Argument Name="AssociateTag"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="KOWNiGbBwuhtK2gCzvhY4zZEtjQpJfE5v0FRd8f+pBs="></Argument><Argument Name="Item.1.OfferListingId" Value="mg7dbfIPL3rTrnxR6R9I4u0glPrEbbdF6p7X9tXpyhAMBRUwGLGi1mOQoClXMciAFenOXG9dZXGSPTfjRoQXma9yOTmeHhYqwPOEPHOz2XHMgooCZPjeQRfgRYQe6DBEd1qz%2Fu1G0ew%3D"></Argument><Argument Name="Item.1.Quantity" Value="1"></Argument><Argument Name="Operation" Value="CartCreate"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Version" Value="2010-11-01"></Argument><Argument Name="Timestamp" Value="2011-04-06T11:09:11Z"></Argument></Arguments><RequestProcessingTime>0.089832067489624</RequestProcessingTime></OperationRequest><Cart><Request><IsValid>True</IsValid><CartCreateRequest><Items><Item><OfferListingId>mg7dbfIPL3rTrnxR6R9I4u0glPrEbbdF6p7X9tXpyhAMBRUwGLGi1mOQoClXMciAFenOXG9dZXGSPTfjRoQXma9yOTmeHhYqwPOEPHOz2XHMgooCZPjeQRfgRYQe6DBEd1qz%2Fu1G0ew%3D</OfferListingId><Quantity>1</Quantity></Item></Items></CartCreateRequest></Request><CartId>185-5703867-5466531</CartId><HMAC>hE8sZY4/KzkQvZzH6XxuIVyEjk4=</HMAC><URLEncodedHMAC>hE8sZY4%2FKzkQvZzH6XxuIVyEjk4%3D</URLEncodedHMAC><PurchaseURL>https://www.amazon.com/gp/cart/aws-merge.html?cart-id=185-5703867-5466531%26associate-id=ws%26hmac=hE8sZY4/KzkQvZzH6XxuIVyEjk4=%26SubscriptionId=0ZVSQ33MDFPQS8H2PM02%26MergeCart=False</PurchaseURL><SubTotal><Amount>1054</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$10.54</FormattedPrice></SubTotal><CartItems><SubTotal><Amount>1054</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$10.54</FormattedPrice></SubTotal><CartItem><CartItemId>U2329STRQPCFPV</CartItemId><ASIN>1844672972</ASIN><ExchangeId>Y18M6004066M1787332</ExchangeId><MerchantId>A1C3QU77DDT2KW</MerchantId><SellerId>A1C3QU77DDT2KW</SellerId><SellerNickname>indoobestsellers</SellerNickname><Quantity>1</Quantity><Title>The Future of the Image</Title><ProductGroup>Book</ProductGroup><Price><Amount>1054</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$10.54</FormattedPrice></Price><ItemTotal><Amount>1054</Amount><CurrencyCode>USD</CurrencyCode><FormattedPrice>$10.54</FormattedPrice></ItemTotal></CartItem></CartItems></Cart></CartCreateResponse>
26
+ http_version: "1.1"
@@ -2,7 +2,7 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :get
5
- uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0415246334&Operation=ItemLookup&RelationshipType=AuthorityTitle&ResponseGroup=RelatedItems&Service=AWSECommerceService&Signature=/TYDmjC9pkytyRm2EOvSMPYFoidXiBWt8CqCy/S1j5s=&Timestamp=2011-02-17T12:46:51Z&Version=2010-11-01
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0679753354&Operation=ItemLookup&RelationshipType=AuthorityTitle&ResponseGroup=RelatedItems&Service=AWSECommerceService&Signature=x6u555+dhNmeLufllXKU47rJcPnIYWPEKH3xTMNosNI=&Timestamp=2011-04-06T11:31:47Z&Version=2010-11-01
6
6
  body:
7
7
  headers:
8
8
  response: !ruby/struct:VCR::Response
@@ -11,7 +11,7 @@
11
11
  message: OK
12
12
  headers:
13
13
  date:
14
- - Thu, 17 Feb 2011 12:46:52 GMT
14
+ - Wed, 06 Apr 2011 11:31:47 GMT
15
15
  server:
16
16
  - Server
17
17
  content-type:
@@ -22,5 +22,5 @@
22
22
  - close
23
23
  transfer-encoding:
24
24
  - chunked
25
- body: <?xml version="1.0" encoding="UTF-8"?><ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header Name="UserAgent" Value="Ruby"></Header></HTTPHeaders><RequestId>13G1SZRDK5Y5GK0DFAMA</RequestId><Arguments><Argument Name="RelationshipType" Value="AuthorityTitle"></Argument><Argument Name="AssociateTag"></Argument><Argument Name="ItemId" Value="0415246334"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="/TYDmjC9pkytyRm2EOvSMPYFoidXiBWt8CqCy/S1j5s="></Argument><Argument Name="ResponseGroup" Value="RelatedItems"></Argument><Argument Name="Operation" Value="ItemLookup"></Argument><Argument Name="IdType" Value="ASIN"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Timestamp" Value="2011-02-17T12:46:51Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0278329849243164</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><IdType>ASIN</IdType><ItemId>0415246334</ItemId><ResponseGroup>RelatedItems</ResponseGroup><RelationshipType>AuthorityTitle</RelationshipType></ItemLookupRequest></Request><Item><ASIN>0415246334</ASIN><RelatedItems><Relationship>Parents</Relationship><RelationshipType>AuthorityTitle</RelationshipType><RelatedItemCount>1</RelatedItemCount><RelatedItemPageCount>1</RelatedItemPageCount><RelatedItemPage>1</RelatedItemPage><RelatedItem><Item><ASIN>B000ASPUES</ASIN></Item></RelatedItem></RelatedItems></Item></Items></ItemLookupResponse>
25
+ body: <?xml version="1.0" encoding="UTF-8"?><ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header Name="UserAgent" Value="Ruby"></Header></HTTPHeaders><RequestId>1SQ3V8BHQKQQ6QAZKBZ0</RequestId><Arguments><Argument Name="RelationshipType" Value="AuthorityTitle"></Argument><Argument Name="AssociateTag"></Argument><Argument Name="ItemId" Value="0679753354"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="x6u555+dhNmeLufllXKU47rJcPnIYWPEKH3xTMNosNI="></Argument><Argument Name="ResponseGroup" Value="RelatedItems"></Argument><Argument Name="Operation" Value="ItemLookup"></Argument><Argument Name="IdType" Value="ASIN"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Timestamp" Value="2011-04-06T11:31:47Z"></Argument><Argument Name="Version" Value="2010-11-01"></Argument></Arguments><RequestProcessingTime>0.0226449966430664</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><IdType>ASIN</IdType><ItemId>0679753354</ItemId><ResponseGroup>RelatedItems</ResponseGroup><RelationshipType>AuthorityTitle</RelationshipType></ItemLookupRequest></Request><Item><ASIN>0679753354</ASIN><RelatedItems><Relationship>Parents</Relationship><RelationshipType>AuthorityTitle</RelationshipType><RelatedItemCount>1</RelatedItemCount><RelatedItemPageCount>1</RelatedItemPageCount><RelatedItemPage>1</RelatedItemPage><RelatedItem><Item><ASIN>B000B1BO1C</ASIN></Item></RelatedItem></RelatedItems></Item></Items></ItemLookupResponse>
26
26
  http_version: "1.1"
@@ -0,0 +1,26 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0007218095&Operation=ItemLookup&Service=AWSECommerceService&Signature=N2audtSrymTLFy1rOv4wnnow6YvF+cS4VySpBELmqNk=&Timestamp=2011-04-06T11:16: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
+ - Wed, 06 Apr 2011 11:16: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" ?><ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><HTTPHeaders><Header Name="UserAgent" Value="Ruby"></Header></HTTPHeaders><RequestId>1df5fdf8-0735-442a-9055-3535aba27752</RequestId><Arguments><Argument Name="Operation" Value="ItemLookup"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="N2audtSrymTLFy1rOv4wnnow6YvF+cS4VySpBELmqNk="></Argument><Argument Name="AssociateTag"></Argument><Argument Name="Version" Value="2010-11-01"></Argument><Argument Name="ItemId" Value="0007218095"></Argument><Argument Name="IdType" Value="ASIN"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Timestamp" Value="2011-04-06T11:16:34Z"></Argument></Arguments><RequestProcessingTime>0.0621100000000000</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><Condition>New</Condition><DeliveryMethod>Ship</DeliveryMethod><IdType>ASIN</IdType><MerchantId>Amazon</MerchantId><OfferPage>1</OfferPage><ItemId>0007218095</ItemId><ResponseGroup>Small</ResponseGroup><ReviewPage>1</ReviewPage><ReviewSort>-SubmissionDate</ReviewSort><VariationPage>All</VariationPage></ItemLookupRequest><Errors><Error><Code>AWS.InvalidParameterValue</Code><Message>0007218095 is not a valid value for ItemId. Please change this value and retry your request.</Message></Error></Errors></Request></Items></ItemLookupResponse>
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0007218095&Operation=ItemLookup&Service=AWSECommerceService&Signature=u5pr0p6O8lIoYiCurI6n/jhhYhs+07tn65VxjR7GBiU=&Timestamp=2011-04-26T08:51:42Z&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
+ content-type:
14
+ - text/xml;charset=UTF-8
15
+ server:
16
+ - Server
17
+ date:
18
+ - Tue, 26 Apr 2011 08:51:41 GMT
19
+ nncoection:
20
+ - close
21
+ vary:
22
+ - Accept-Encoding,User-Agent
23
+ transfer-encoding:
24
+ - chunked
25
+ body: <?xml version="1.0" ?><ItemLookupResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2010-11-01"><OperationRequest><RequestId>ac12bfb9-c17d-4cc0-a525-eab6a082cea4</RequestId><Arguments><Argument Name="Operation" Value="ItemLookup"></Argument><Argument Name="Service" Value="AWSECommerceService"></Argument><Argument Name="Signature" Value="u5pr0p6O8lIoYiCurI6n/jhhYhs+07tn65VxjR7GBiU="></Argument><Argument Name="AssociateTag"></Argument><Argument Name="Version" Value="2010-11-01"></Argument><Argument Name="ItemId" Value="0007218095"></Argument><Argument Name="IdType" Value="ASIN"></Argument><Argument Name="AWSAccessKeyId" Value="0ZVSQ33MDFPQS8H2PM02"></Argument><Argument Name="Timestamp" Value="2011-04-26T08:51:42Z"></Argument></Arguments><RequestProcessingTime>0.0753770000000000</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><Condition>New</Condition><DeliveryMethod>Ship</DeliveryMethod><IdType>ASIN</IdType><MerchantId>Amazon</MerchantId><OfferPage>1</OfferPage><ItemId>0007218095</ItemId><ResponseGroup>Small</ResponseGroup><ReviewPage>1</ReviewPage><ReviewSort>-SubmissionDate</ReviewSort><VariationPage>All</VariationPage></ItemLookupRequest><Errors><Error><Code>AWS.InvalidParameterValue</Code><Message>0007218095 is not a valid value for ItemId. Please change this value and retry your request.</Message></Error></Errors></Request></Items></ItemLookupResponse>
26
+ http_version: "1.1"
@@ -0,0 +1,26 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
+ method: :get
5
+ uri: http://ecs.amazonaws.com:80/onca/xml?AWSAccessKeyId=0ZVSQ33MDFPQS8H2PM02&AssociateTag=&IdType=ASIN&ItemId=0679753354&Operation=ItemLookup&ResponseGroup=AlternateVersions&Service=AWSECommerceService&Signature=YPFiPH/L6wDuLYczNsDAdD1uhpFV+YFtNaZYavWcCo4=&Timestamp=2011-04-06T11:20:07Z&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
+ - Wed, 06 Apr 2011 11:20:07 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\"?><ItemLookupResponse xmlns=\"http://webservices.amazon.com/AWSECommerceService/2010-11-01\"><OperationRequest><HTTPHeaders><Header Name=\"UserAgent\" Value=\"Ruby\"></Header></HTTPHeaders><RequestId>067YG0Z3BDHJNK67V2EN</RequestId><Arguments><Argument Name=\"AssociateTag\"></Argument><Argument Name=\"ItemId\" Value=\"0679753354\"></Argument><Argument Name=\"Service\" Value=\"AWSECommerceService\"></Argument><Argument Name=\"Signature\" Value=\"YPFiPH/L6wDuLYczNsDAdD1uhpFV+YFtNaZYavWcCo4=\"></Argument><Argument Name=\"ResponseGroup\" Value=\"AlternateVersions\"></Argument><Argument Name=\"Operation\" Value=\"ItemLookup\"></Argument><Argument Name=\"IdType\" Value=\"ASIN\"></Argument><Argument Name=\"AWSAccessKeyId\" Value=\"0ZVSQ33MDFPQS8H2PM02\"></Argument><Argument Name=\"Timestamp\" Value=\"2011-04-06T11:20:07Z\"></Argument><Argument Name=\"Version\" Value=\"2010-11-01\"></Argument></Arguments><RequestProcessingTime>0.0785481929779053</RequestProcessingTime></OperationRequest><Items><Request><IsValid>True</IsValid><ItemLookupRequest><IdType>ASIN</IdType><ItemId>0679753354</ItemId><ResponseGroup>AlternateVersions</ResponseGroup></ItemLookupRequest></Request><Item><ASIN>0679753354</ASIN><AlternateVersions><AlternateVersion><ASIN>B000W2Q70I</ASIN><Title>THE ORDER OF THINGS. An Archaeology of the Human Sciences.</Title><Binding>Hardcover</Binding></AlternateVersion><AlternateVersion><ASIN>B000SW4DX0</ASIN><Title>The Order of Things: an Archaeology of the human Sciences</Title><Binding>Paperback</Binding></AlternateVersion><AlternateVersion><ASIN>B000KHFOCC</ASIN><Title>The Order of Things: an Archaeology of the Human Sciences (World of Man)</Title><Binding>Hardcover</Binding></AlternateVersion><AlternateVersion><ASIN>B000MBQYNE</ASIN><Title>Order of Things: An Archaeology of the Human Sciences</Title><Binding>Hardcover</Binding></AlternateVersion><AlternateVersion><ASIN>B000HZIHD0</ASIN><Title>The Order of Things: An Archaeology of the Human Sciences</Title><Binding>Mass Market Paperback</Binding></AlternateVersion><AlternateVersion><ASIN>B000OT88VU</ASIN><Title>The Order of Things: An Archaeology of the Human Sciences</Title><Binding>Kindle Edition</Binding></AlternateVersion><AlternateVersion><ASIN>0415267374</ASIN><Title>Order of Things: An Archaeology of the Human Sciences (Routledge Classics)</Title><Binding>Paperback</Binding></AlternateVersion><AlternateVersion><ASIN>0415040191</ASIN><Title>The Order of Things</Title><Binding>Paperback</Binding></AlternateVersion><AlternateVersion><ASIN>0415267366</ASIN><Title>Order of Things: An Archaeology of the Human Sciences (Routledge Classics)</Title><Binding>Hardcover</Binding></AlternateVersion><AlternateVersion><ASIN>0394719352</ASIN><Title>The Order of Things</Title><Binding>Paperback</Binding></AlternateVersion><AlternateVersion><ASIN>B0007BFJ08</ASIN><Title>The order of things: An archaeology of the human sciences (Social science paperbacks)</Title><Binding>Unknown Binding</Binding></AlternateVersion><AlternateVersion><ASIN>0422718904</ASIN><Title>The order of things: An archaeology of the human sciences; (World of man)</Title><Binding>Hardcover</Binding></AlternateVersion><AlternateVersion><ASIN>039443952X</ASIN><Title>The order of things: An archaeology of the human sciences (World of man)</Title><Binding>Hardcover</Binding></AlternateVersion></AlternateVersions></Item></Items></ItemLookupResponse>"
26
+ http_version: "1.1"