peddler 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/lib/mws/fulfillment_inventory.rb +22 -6
- data/lib/peddler/flat_file_parser.rb +1 -1
- data/lib/peddler/parser.rb +3 -3
- data/lib/peddler/version.rb +1 -1
- data/lib/peddler/xml_parser.rb +4 -0
- data/test/helper.rb +0 -2
- data/test/integration/test_fulfillment_inventory.rb +11 -0
- data/test/integration_helper.rb +1 -1
- data/test/unit/peddler/test_xml_parser.rb +5 -1
- data/test/vcr_cassettes/CartInformation.yml +366 -0
- data/test/vcr_cassettes/CustomerInformation.yml +367 -0
- data/test/vcr_cassettes/FulfillmentInboundShipment.yml +368 -0
- data/test/vcr_cassettes/FulfillmentInventory.yml +1169 -0
- data/test/vcr_cassettes/FulfillmentOutboundShipment.yml +366 -0
- data/test/vcr_cassettes/OffAmazonPayments.yml +368 -0
- data/test/vcr_cassettes/Orders.yml +367 -0
- data/test/vcr_cassettes/Products.yml +367 -0
- data/test/vcr_cassettes/Recommendations.yml +366 -0
- data/test/vcr_cassettes/Sellers.yml +368 -0
- data/test/vcr_cassettes/Subscriptions.yml +366 -0
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06cb553e078d4d6f9aafd060c115c8046121b3fd
|
4
|
+
data.tar.gz: c50d0504401be833d849b920dc6719fae8450d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb936ff1e15a326d977b698ad5c9f702971fb7ccc65b273773f0fa4f55d8fee5fb92a8cc304e79fc99f6b36a2b07c01376500e32c9aebbc0d51c13a25cf0a25e
|
7
|
+
data.tar.gz: 16949287e0ba9cd9ecdadcb8564d2ea508e9c85fc002b1967993912d0fe450f7616a98cfb90def32e98544eb4946d43a1ad0c30957025b8dd2fe3f898b85920e
|
data/README.md
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
# Peddler
|
2
3
|
|
3
4
|
[![Build Status][1]][2]
|
@@ -73,8 +74,6 @@ With the MWS Fulfillment Inbound Shipment API, you can create and update inbound
|
|
73
74
|
|
74
75
|
### Fulfillment Inventory
|
75
76
|
|
76
|
-
**Not implemented**
|
77
|
-
|
78
77
|
The MWS Fulfillment Inventory API can help you stay up-to-date on the availability of your inventory in the Amazon Fulfillment Network. The Fulfillment Inventory API reports real-time availability information for your Amazon Fulfillment Network inventory regardless of whether you are selling your inventory on Amazon's retail web site or through other retail channels.
|
79
78
|
|
80
79
|
[Read more](http://rubydoc.info/github/hakanensari/peddler/MWS/FulfillmentInventory)
|
@@ -7,20 +7,36 @@ module MWS
|
|
7
7
|
# your Amazon Fulfillment Network inventory regardless of whether you are
|
8
8
|
# selling your inventory on Amazon's retail web site or through other retail
|
9
9
|
# channels.
|
10
|
-
#
|
11
|
-
# @todo Not implemented
|
12
10
|
class FulfillmentInventory < ::Peddler::Client
|
13
11
|
path '/FulfillmentInventory/2010-10-01'
|
14
12
|
|
15
13
|
# Returns information about the availability of a seller's inventory
|
16
|
-
|
17
|
-
|
14
|
+
#
|
15
|
+
# @see http://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupply.html
|
16
|
+
# @param opts [Hash]
|
17
|
+
# @option opts [Array<String>, String] :seller_skus
|
18
|
+
# @option opts [String, #iso8601] :query_start_date_time
|
19
|
+
# @option opts [String] :response_group
|
20
|
+
# @return [Peddler::XMLParser]
|
21
|
+
def list_inventory_supply(opts = {})
|
22
|
+
operation('ListInventorySupply')
|
23
|
+
.add(opts)
|
24
|
+
.structure!('SellerSkus', 'member')
|
25
|
+
|
26
|
+
run
|
18
27
|
end
|
19
28
|
|
20
29
|
# Returns the next page of information about the availability of a seller's
|
21
30
|
# inventory
|
22
|
-
|
23
|
-
|
31
|
+
#
|
32
|
+
# @see http://docs.developer.amazonservices.com/en_US/fba_inventory/FBAInventory_ListInventorySupplyByNextToken.html
|
33
|
+
# @param next_token [String]
|
34
|
+
# @return [Peddler::XMLParser]
|
35
|
+
def list_inventory_supply_by_next_token(next_token)
|
36
|
+
operation('ListInventorySupplyByNextToken')
|
37
|
+
.add('NextToken' => next_token)
|
38
|
+
|
39
|
+
run
|
24
40
|
end
|
25
41
|
|
26
42
|
# Gets the operational status of the API
|
data/lib/peddler/parser.rb
CHANGED
@@ -11,10 +11,10 @@ module Peddler
|
|
11
11
|
# Don't parse if there's no body
|
12
12
|
return res unless res.body
|
13
13
|
|
14
|
-
|
15
|
-
|
14
|
+
content_type = res.headers['Content-Type']
|
15
|
+
if content_type.start_with?('text/xml')
|
16
16
|
XMLParser.new(res)
|
17
|
-
|
17
|
+
elsif content_type == 'application/octet-stream'
|
18
18
|
FlatFileParser.new(res, encoding)
|
19
19
|
else
|
20
20
|
raise NotImplementedError
|
data/lib/peddler/version.rb
CHANGED
data/lib/peddler/xml_parser.rb
CHANGED
data/test/helper.rb
CHANGED
@@ -2,6 +2,17 @@ require 'integration_helper'
|
|
2
2
|
require 'mws/fulfillment_inventory'
|
3
3
|
|
4
4
|
class FulfillmentInventoryTest < IntegrationTest
|
5
|
+
def a_month_ago
|
6
|
+
Date.today - 30
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_lists_inventory_supply
|
10
|
+
clients.each do |client|
|
11
|
+
res = client.list_inventory_supply(query_start_date_time: a_month_ago)
|
12
|
+
refute_empty res.parse
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
5
16
|
def test_gets_service_status
|
6
17
|
clients.each do |client|
|
7
18
|
res = client.get_service_status
|
data/test/integration_helper.rb
CHANGED
@@ -11,7 +11,7 @@ VCR.configure do |c|
|
|
11
11
|
interaction.ignore! if interaction.response.status.code >= 400
|
12
12
|
end
|
13
13
|
|
14
|
-
nondeterministic_params = %w(Signature Timestamp StartDate CreatedAfter)
|
14
|
+
nondeterministic_params = %w(Signature Timestamp StartDate CreatedAfter QueryStartDateTime)
|
15
15
|
matcher = VCR.request_matchers.uri_without_param(*nondeterministic_params)
|
16
16
|
c.default_cassette_options = {
|
17
17
|
match_requests_on: [:method, matcher],
|
@@ -4,7 +4,7 @@ require 'peddler/xml_parser'
|
|
4
4
|
class XMLParserTest < MiniTest::Test
|
5
5
|
def setup
|
6
6
|
body = '<Response><Result><NextToken>123</NextToken><Foo>Bar</Foo></Result></Response>'
|
7
|
-
res = OpenStruct.new(body: body, headers: { 'Content-Type' => 'text/xml'})
|
7
|
+
res = OpenStruct.new(body: body, headers: { 'Content-Type' => 'text/xml', 'Content-Length' => '78'})
|
8
8
|
|
9
9
|
@parser = Peddler::XMLParser.new(res)
|
10
10
|
end
|
@@ -16,4 +16,8 @@ class XMLParserTest < MiniTest::Test
|
|
16
16
|
def test_next_token
|
17
17
|
assert_equal '123', @parser.next_token
|
18
18
|
end
|
19
|
+
|
20
|
+
def test_validates
|
21
|
+
assert @parser.valid?
|
22
|
+
end
|
19
23
|
end
|
@@ -367,4 +367,370 @@ http_interactions:
|
|
367
367
|
</GetServiceStatusResponse>
|
368
368
|
http_version:
|
369
369
|
recorded_at: Fri, 11 Apr 2014 10:20:04 GMT
|
370
|
+
- request:
|
371
|
+
method: post
|
372
|
+
uri: https://mws.amazonservices.com/?AWSAccessKeyId=AKIAJ767ZET2BZR4UDDQ&Action=GetServiceStatus&SellerId=A2H6NH4SQYFZ4M&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A07Z&Signature=46hjBJ8jCnoYq0MNavDYgXdAIjPGhbqKCPHKCBwFyxc%3D
|
373
|
+
body:
|
374
|
+
encoding: US-ASCII
|
375
|
+
string: ''
|
376
|
+
headers:
|
377
|
+
User-Agent:
|
378
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
379
|
+
response:
|
380
|
+
status:
|
381
|
+
code: 200
|
382
|
+
message:
|
383
|
+
headers:
|
384
|
+
Date:
|
385
|
+
- Sun, 27 Apr 2014 15:56:07 GMT
|
386
|
+
Server:
|
387
|
+
- AmazonMWS
|
388
|
+
x-mws-request-id:
|
389
|
+
- 3e40047e-8f7a-444c-8a45-6d61811a48e6
|
390
|
+
x-mws-timestamp:
|
391
|
+
- '2014-04-27T15:56:07.383Z'
|
392
|
+
x-mws-response-context:
|
393
|
+
- eq6cePLnQi31ByjCLtcqM778R28dCUc4+FuFHakRV1qo0Fsp/4N7DQBmsKVWHFpJ/Lv9Ns6bgOM=
|
394
|
+
Content-Type:
|
395
|
+
- text/xml
|
396
|
+
Content-Length:
|
397
|
+
- '367'
|
398
|
+
Vary:
|
399
|
+
- User-Agent
|
400
|
+
body:
|
401
|
+
encoding: UTF-8
|
402
|
+
string: |
|
403
|
+
<?xml version="1.0"?>
|
404
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
405
|
+
<GetServiceStatusResult>
|
406
|
+
<Status>GREEN</Status>
|
407
|
+
<Timestamp>2014-04-27T15:56:07.383Z</Timestamp>
|
408
|
+
</GetServiceStatusResult>
|
409
|
+
<ResponseMetadata>
|
410
|
+
<RequestId>3e40047e-8f7a-444c-8a45-6d61811a48e6</RequestId>
|
411
|
+
</ResponseMetadata>
|
412
|
+
</GetServiceStatusResponse>
|
413
|
+
http_version:
|
414
|
+
recorded_at: Sun, 27 Apr 2014 15:56:07 GMT
|
415
|
+
- request:
|
416
|
+
method: post
|
417
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAIORT7554FEBW7UBQ&Action=GetServiceStatus&SellerId=A7ZXDJZD3UIRG&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A07Z&Signature=8ZYtSHdYXCz3t2ms7s%2Fgr0rPdN8jlJl4DxbZNH584lY%3D
|
418
|
+
body:
|
419
|
+
encoding: US-ASCII
|
420
|
+
string: ''
|
421
|
+
headers:
|
422
|
+
User-Agent:
|
423
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
424
|
+
response:
|
425
|
+
status:
|
426
|
+
code: 200
|
427
|
+
message:
|
428
|
+
headers:
|
429
|
+
Date:
|
430
|
+
- Sun, 27 Apr 2014 15:56:07 GMT
|
431
|
+
Server:
|
432
|
+
- AmazonMWS
|
433
|
+
x-mws-request-id:
|
434
|
+
- 5461c4ef-abef-4808-8f08-c59078d2df27
|
435
|
+
x-mws-timestamp:
|
436
|
+
- '2014-04-27T15:56:07.644Z'
|
437
|
+
x-mws-response-context:
|
438
|
+
- oAL+pPTknWmCmvW8qp40mB5UF+do3bNNzoXVj6KlXDPlKLtwk1i78a4SNyqdIjYESfU0nolN68Nd
|
439
|
+
hvNSEm3yTQ==
|
440
|
+
Content-Type:
|
441
|
+
- text/xml
|
442
|
+
Content-Length:
|
443
|
+
- '367'
|
444
|
+
Vary:
|
445
|
+
- User-Agent
|
446
|
+
body:
|
447
|
+
encoding: UTF-8
|
448
|
+
string: |
|
449
|
+
<?xml version="1.0"?>
|
450
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
451
|
+
<GetServiceStatusResult>
|
452
|
+
<Status>GREEN</Status>
|
453
|
+
<Timestamp>2014-04-27T15:56:07.644Z</Timestamp>
|
454
|
+
</GetServiceStatusResult>
|
455
|
+
<ResponseMetadata>
|
456
|
+
<RequestId>5461c4ef-abef-4808-8f08-c59078d2df27</RequestId>
|
457
|
+
</ResponseMetadata>
|
458
|
+
</GetServiceStatusResponse>
|
459
|
+
http_version:
|
460
|
+
recorded_at: Sun, 27 Apr 2014 15:56:07 GMT
|
461
|
+
- request:
|
462
|
+
method: post
|
463
|
+
uri: https://mws.amazonservices.ca/?AWSAccessKeyId=AKIAITHQMZUJROSOP27Q&Action=GetServiceStatus&SellerId=A2A7WNXBU01UJW&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A07Z&Signature=ulOPp6nM4qZ9GfI0Vpq9R3Xn95Sug0ftiDcit%2BLYTEc%3D
|
464
|
+
body:
|
465
|
+
encoding: US-ASCII
|
466
|
+
string: ''
|
467
|
+
headers:
|
468
|
+
User-Agent:
|
469
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
470
|
+
response:
|
471
|
+
status:
|
472
|
+
code: 200
|
473
|
+
message:
|
474
|
+
headers:
|
475
|
+
Date:
|
476
|
+
- Sun, 27 Apr 2014 15:56:07 GMT
|
477
|
+
Server:
|
478
|
+
- AmazonMWS
|
479
|
+
x-mws-request-id:
|
480
|
+
- cb7dbfdb-e7ad-4f27-b1e0-b820140885ca
|
481
|
+
x-mws-timestamp:
|
482
|
+
- '2014-04-27T15:56:08.247Z'
|
483
|
+
x-mws-response-context:
|
484
|
+
- kO/kmhpWaOpwFcEqWHnpAzBYud6V8kUnx7kOhWLgadMtBpI6KlJB/cGklTvTkP8BONun3kkK8f4=
|
485
|
+
Content-Type:
|
486
|
+
- text/xml
|
487
|
+
Content-Length:
|
488
|
+
- '367'
|
489
|
+
Vary:
|
490
|
+
- User-Agent
|
491
|
+
body:
|
492
|
+
encoding: UTF-8
|
493
|
+
string: |
|
494
|
+
<?xml version="1.0"?>
|
495
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
496
|
+
<GetServiceStatusResult>
|
497
|
+
<Status>GREEN</Status>
|
498
|
+
<Timestamp>2014-04-27T15:56:08.247Z</Timestamp>
|
499
|
+
</GetServiceStatusResult>
|
500
|
+
<ResponseMetadata>
|
501
|
+
<RequestId>cb7dbfdb-e7ad-4f27-b1e0-b820140885ca</RequestId>
|
502
|
+
</ResponseMetadata>
|
503
|
+
</GetServiceStatusResponse>
|
504
|
+
http_version:
|
505
|
+
recorded_at: Sun, 27 Apr 2014 15:56:08 GMT
|
506
|
+
- request:
|
507
|
+
method: post
|
508
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI6X4QZRXSHGHABJA&Action=GetServiceStatus&SellerId=A2NEU7G6RGUKF&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A08Z&Signature=EpV7N1JhZNx4WnRPnpotK0XkMcufwbcc6CwaT3N01Uc%3D
|
509
|
+
body:
|
510
|
+
encoding: US-ASCII
|
511
|
+
string: ''
|
512
|
+
headers:
|
513
|
+
User-Agent:
|
514
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
515
|
+
response:
|
516
|
+
status:
|
517
|
+
code: 200
|
518
|
+
message:
|
519
|
+
headers:
|
520
|
+
Date:
|
521
|
+
- Sun, 27 Apr 2014 15:56:07 GMT
|
522
|
+
Server:
|
523
|
+
- AmazonMWS
|
524
|
+
x-mws-request-id:
|
525
|
+
- 58ea16aa-55ed-43b1-836c-c58570c0ddd5
|
526
|
+
x-mws-timestamp:
|
527
|
+
- '2014-04-27T15:56:08.440Z'
|
528
|
+
x-mws-response-context:
|
529
|
+
- iDaksmOXtXihWDgmm9Omg6WheZOCZc06NW71D6b54uxU1GloCr38as0I+BqC+43aXNZ10AZX8KQF
|
530
|
+
oYUbTE9s/w==
|
531
|
+
Content-Type:
|
532
|
+
- text/xml
|
533
|
+
Content-Length:
|
534
|
+
- '367'
|
535
|
+
Vary:
|
536
|
+
- User-Agent
|
537
|
+
body:
|
538
|
+
encoding: UTF-8
|
539
|
+
string: |
|
540
|
+
<?xml version="1.0"?>
|
541
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
542
|
+
<GetServiceStatusResult>
|
543
|
+
<Status>GREEN</Status>
|
544
|
+
<Timestamp>2014-04-27T15:56:08.440Z</Timestamp>
|
545
|
+
</GetServiceStatusResult>
|
546
|
+
<ResponseMetadata>
|
547
|
+
<RequestId>58ea16aa-55ed-43b1-836c-c58570c0ddd5</RequestId>
|
548
|
+
</ResponseMetadata>
|
549
|
+
</GetServiceStatusResponse>
|
550
|
+
http_version:
|
551
|
+
recorded_at: Sun, 27 Apr 2014 15:56:08 GMT
|
552
|
+
- request:
|
553
|
+
method: post
|
554
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAI4ZNSD76DH7UBRDA&Action=GetServiceStatus&SellerId=A2DP6GIDYN6OTH&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A08Z&Signature=%2FR4nkfnG1ZTt3aQqdcY4lNvIDTTq%2FxFhtGvmXDELVrY%3D
|
555
|
+
body:
|
556
|
+
encoding: US-ASCII
|
557
|
+
string: ''
|
558
|
+
headers:
|
559
|
+
User-Agent:
|
560
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
561
|
+
response:
|
562
|
+
status:
|
563
|
+
code: 200
|
564
|
+
message:
|
565
|
+
headers:
|
566
|
+
Date:
|
567
|
+
- Sun, 27 Apr 2014 15:56:08 GMT
|
568
|
+
Server:
|
569
|
+
- AmazonMWS
|
570
|
+
x-mws-request-id:
|
571
|
+
- fe1056d8-ada9-463c-8f57-a38b5f3fbeed
|
572
|
+
x-mws-timestamp:
|
573
|
+
- '2014-04-27T15:56:08.653Z'
|
574
|
+
x-mws-response-context:
|
575
|
+
- 24xUAlXSvtBVg/1luFs1BoeGsEiRzFtpirBAO4xc2g8OizlpZ0eV/yppcJi9r/kpysqbC9+qZXFq
|
576
|
+
W3HtPOQxOQ==
|
577
|
+
Content-Type:
|
578
|
+
- text/xml
|
579
|
+
Content-Length:
|
580
|
+
- '367'
|
581
|
+
Vary:
|
582
|
+
- User-Agent
|
583
|
+
body:
|
584
|
+
encoding: UTF-8
|
585
|
+
string: |
|
586
|
+
<?xml version="1.0"?>
|
587
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
588
|
+
<GetServiceStatusResult>
|
589
|
+
<Status>GREEN</Status>
|
590
|
+
<Timestamp>2014-04-27T15:56:08.653Z</Timestamp>
|
591
|
+
</GetServiceStatusResult>
|
592
|
+
<ResponseMetadata>
|
593
|
+
<RequestId>fe1056d8-ada9-463c-8f57-a38b5f3fbeed</RequestId>
|
594
|
+
</ResponseMetadata>
|
595
|
+
</GetServiceStatusResponse>
|
596
|
+
http_version:
|
597
|
+
recorded_at: Sun, 27 Apr 2014 15:56:08 GMT
|
598
|
+
- request:
|
599
|
+
method: post
|
600
|
+
uri: https://mws.amazonservices.jp/?AWSAccessKeyId=AKIAJ5RDDSRROM6GXQ5Q&Action=GetServiceStatus&SellerId=A7BU5WGNVGQ1I&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A08Z&Signature=jCdMyK%2FrsRyAK0MVgWRD89RESwkj%2B67icogny737b4g%3D
|
601
|
+
body:
|
602
|
+
encoding: US-ASCII
|
603
|
+
string: ''
|
604
|
+
headers:
|
605
|
+
User-Agent:
|
606
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
607
|
+
response:
|
608
|
+
status:
|
609
|
+
code: 200
|
610
|
+
message:
|
611
|
+
headers:
|
612
|
+
Date:
|
613
|
+
- Sun, 27 Apr 2014 15:56:08 GMT
|
614
|
+
Server:
|
615
|
+
- AmazonMWS
|
616
|
+
x-mws-request-id:
|
617
|
+
- f3149889-c6ee-4967-8de6-01457cc437de
|
618
|
+
x-mws-timestamp:
|
619
|
+
- '2014-04-27T15:56:09.368Z'
|
620
|
+
x-mws-response-context:
|
621
|
+
- rr4ZVxgmFyLiMogkZs0eOVLhc9wW62HZ+X5+ON+q+CcVJBUtiEZjlVEHDCHZxkUkOAIShdrRja+r
|
622
|
+
drhB/QBHNw==
|
623
|
+
Content-Type:
|
624
|
+
- text/xml
|
625
|
+
Content-Length:
|
626
|
+
- '367'
|
627
|
+
Vary:
|
628
|
+
- User-Agent
|
629
|
+
body:
|
630
|
+
encoding: UTF-8
|
631
|
+
string: |
|
632
|
+
<?xml version="1.0"?>
|
633
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
634
|
+
<GetServiceStatusResult>
|
635
|
+
<Status>GREEN</Status>
|
636
|
+
<Timestamp>2014-04-27T15:56:09.368Z</Timestamp>
|
637
|
+
</GetServiceStatusResult>
|
638
|
+
<ResponseMetadata>
|
639
|
+
<RequestId>f3149889-c6ee-4967-8de6-01457cc437de</RequestId>
|
640
|
+
</ResponseMetadata>
|
641
|
+
</GetServiceStatusResponse>
|
642
|
+
http_version:
|
643
|
+
recorded_at: Sun, 27 Apr 2014 15:56:09 GMT
|
644
|
+
- request:
|
645
|
+
method: post
|
646
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJLUHOXLR5S2L6A6A&Action=GetServiceStatus&SellerId=A2APQUVDBVWV7E&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A09Z&Signature=gCSL%2BRMCv6V%2BEu6Gqc7hZZSMCIw%2FDP1rx4U1iNb0Vx8%3D
|
647
|
+
body:
|
648
|
+
encoding: US-ASCII
|
649
|
+
string: ''
|
650
|
+
headers:
|
651
|
+
User-Agent:
|
652
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
653
|
+
response:
|
654
|
+
status:
|
655
|
+
code: 200
|
656
|
+
message:
|
657
|
+
headers:
|
658
|
+
Date:
|
659
|
+
- Sun, 27 Apr 2014 15:56:09 GMT
|
660
|
+
Server:
|
661
|
+
- AmazonMWS
|
662
|
+
x-mws-request-id:
|
663
|
+
- 87e97c8d-3e7e-4429-8e32-0dec3eb78f3b
|
664
|
+
x-mws-timestamp:
|
665
|
+
- '2014-04-27T15:56:09.570Z'
|
666
|
+
x-mws-response-context:
|
667
|
+
- nV3j1Fm1GwuFWcceyor/UZxKDmkqRJXz7sCZeXXEST9XQat7XyEfHzYdOLUABk7/MSjccR6/WByj
|
668
|
+
fRBM9EqQbw==
|
669
|
+
Content-Type:
|
670
|
+
- text/xml
|
671
|
+
Content-Length:
|
672
|
+
- '367'
|
673
|
+
Vary:
|
674
|
+
- User-Agent
|
675
|
+
body:
|
676
|
+
encoding: UTF-8
|
677
|
+
string: |
|
678
|
+
<?xml version="1.0"?>
|
679
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
680
|
+
<GetServiceStatusResult>
|
681
|
+
<Status>GREEN</Status>
|
682
|
+
<Timestamp>2014-04-27T15:56:09.570Z</Timestamp>
|
683
|
+
</GetServiceStatusResult>
|
684
|
+
<ResponseMetadata>
|
685
|
+
<RequestId>87e97c8d-3e7e-4429-8e32-0dec3eb78f3b</RequestId>
|
686
|
+
</ResponseMetadata>
|
687
|
+
</GetServiceStatusResponse>
|
688
|
+
http_version:
|
689
|
+
recorded_at: Sun, 27 Apr 2014 15:56:09 GMT
|
690
|
+
- request:
|
691
|
+
method: post
|
692
|
+
uri: https://mws-eu.amazonservices.com/?AWSAccessKeyId=AKIAJJDQ2MJTMPXKJE4A&Action=GetServiceStatus&SellerId=A2D9DZ30GEWP6N&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2014-04-27T15%3A56%3A09Z&Signature=aSUrHm0bEhZ39yL6KLTv53Mrjbre8lixGvJu0gHW4ws%3D
|
693
|
+
body:
|
694
|
+
encoding: US-ASCII
|
695
|
+
string: ''
|
696
|
+
headers:
|
697
|
+
User-Agent:
|
698
|
+
- Jeff/1.0.1 (Language=Ruby; Hakans-MacBook-Pro.local)
|
699
|
+
response:
|
700
|
+
status:
|
701
|
+
code: 200
|
702
|
+
message:
|
703
|
+
headers:
|
704
|
+
Date:
|
705
|
+
- Sun, 27 Apr 2014 15:56:09 GMT
|
706
|
+
Server:
|
707
|
+
- AmazonMWS
|
708
|
+
x-mws-request-id:
|
709
|
+
- 32da27d4-d740-44ed-b57a-d3b5f69262be
|
710
|
+
x-mws-timestamp:
|
711
|
+
- '2014-04-27T15:56:09.756Z'
|
712
|
+
x-mws-response-context:
|
713
|
+
- zRNbmztvjwrWov+vgvUAy86DanCnUyKinMPsAyfxwocMohYDw9J94+7TqrYYf8vHbdIheHByd+Tq
|
714
|
+
rTU3cxawLQ==
|
715
|
+
Content-Type:
|
716
|
+
- text/xml
|
717
|
+
Content-Length:
|
718
|
+
- '367'
|
719
|
+
Vary:
|
720
|
+
- User-Agent
|
721
|
+
body:
|
722
|
+
encoding: UTF-8
|
723
|
+
string: |
|
724
|
+
<?xml version="1.0"?>
|
725
|
+
<GetServiceStatusResponse xmlns="http://mws.amazonaws.com/doc/2009-01-01/">
|
726
|
+
<GetServiceStatusResult>
|
727
|
+
<Status>GREEN</Status>
|
728
|
+
<Timestamp>2014-04-27T15:56:09.756Z</Timestamp>
|
729
|
+
</GetServiceStatusResult>
|
730
|
+
<ResponseMetadata>
|
731
|
+
<RequestId>32da27d4-d740-44ed-b57a-d3b5f69262be</RequestId>
|
732
|
+
</ResponseMetadata>
|
733
|
+
</GetServiceStatusResponse>
|
734
|
+
http_version:
|
735
|
+
recorded_at: Sun, 27 Apr 2014 15:56:09 GMT
|
370
736
|
recorded_with: VCR 2.9.0
|