ebay-ruby 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +22 -0
- data/README.md +75 -9
- data/lib/ebay-ruby.rb +2 -0
- data/lib/ebay.rb +3 -9
- data/lib/ebay/browse.rb +167 -0
- data/lib/ebay/config.rb +33 -8
- data/lib/ebay/finding.rb +144 -5
- data/lib/ebay/merchandising.rb +90 -5
- data/lib/ebay/oauth/client_credentials_grant.rb +59 -0
- data/lib/ebay/sandboxable.rb +24 -0
- data/lib/ebay/shopping.rb +163 -6
- data/lib/ebay/version.rb +1 -1
- metadata +73 -59
- data/.gitignore +0 -5
- data/.travis.yml +0 -15
- data/Gemfile +0 -2
- data/Rakefile +0 -9
- data/ebay-ruby.gemspec +0 -22
- data/lib/ebay/parser.rb +0 -15
- data/lib/ebay/product.rb +0 -9
- data/lib/ebay/product_metadata.rb +0 -9
- data/lib/ebay/request.rb +0 -35
- data/test/cassettes/finding.yml +0 -135
- data/test/cassettes/merchandising.yml +0 -93
- data/test/cassettes/product.yml +0 -101
- data/test/cassettes/product_metadata.yml +0 -96
- data/test/cassettes/shopping.yml +0 -125
- data/test/helper.rb +0 -10
- data/test/test_finding.rb +0 -36
- data/test/test_merchandising.rb +0 -34
- data/test/test_parser.rb +0 -25
- data/test/test_product.rb +0 -38
- data/test/test_product_metadata.rb +0 -36
- data/test/test_shopping.rb +0 -34
data/.travis.yml
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/ebay-ruby.gemspec
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
$:.push File.expand_path('../lib', __FILE__)
|
2
|
-
require 'ebay/version'
|
3
|
-
|
4
|
-
Gem::Specification.new do |s|
|
5
|
-
s.name = 'ebay-ruby'
|
6
|
-
s.version = Ebay::VERSION
|
7
|
-
s.authors = ['Hakan Ensari']
|
8
|
-
s.email = ['me@hakanensari.com']
|
9
|
-
s.homepage = 'https://github.com/hakanensari/ebay-ruby'
|
10
|
-
s.summary = 'A Ruby wrapper to the eBay Web Services API'
|
11
|
-
|
12
|
-
s.add_dependency 'excon', '~>0.33'
|
13
|
-
s.add_dependency 'multi_xml', '>= 0.5.5'
|
14
|
-
|
15
|
-
s.add_development_dependency 'rake', '~> 10.3'
|
16
|
-
s.add_development_dependency 'minitest', '~> 5.3'
|
17
|
-
s.add_development_dependency 'vcr', '~> 2.9'
|
18
|
-
|
19
|
-
s.files = `git ls-files`.split("\n")
|
20
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
21
|
-
s.require_paths = ['lib']
|
22
|
-
end
|
data/lib/ebay/parser.rb
DELETED
data/lib/ebay/product.rb
DELETED
data/lib/ebay/request.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'excon'
|
2
|
-
require 'ebay/config'
|
3
|
-
require 'ebay/parser'
|
4
|
-
|
5
|
-
module Ebay
|
6
|
-
class Request
|
7
|
-
%i(host path headers).each do |method|
|
8
|
-
eval <<-DEF
|
9
|
-
def self.#{method}(value = nil)
|
10
|
-
value ? @#{method} = value : @#{method}
|
11
|
-
end
|
12
|
-
|
13
|
-
def #{method}
|
14
|
-
@#{method} ||= self.class.send(:#{method})
|
15
|
-
end
|
16
|
-
DEF
|
17
|
-
end
|
18
|
-
|
19
|
-
def sandbox!
|
20
|
-
return if host.include?('sandbox')
|
21
|
-
host.sub!('ebay', 'sandbox.ebay')
|
22
|
-
end
|
23
|
-
|
24
|
-
def get(opts)
|
25
|
-
response = connection.get(opts)
|
26
|
-
Parser.new(response)
|
27
|
-
end
|
28
|
-
|
29
|
-
private
|
30
|
-
|
31
|
-
def connection
|
32
|
-
Excon.new("https://#{host}#{path}", headers: headers)
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
data/test/cassettes/finding.yml
DELETED
@@ -1,135 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://svcs.sandbox.ebay.com/services/search/FindingService/v1?GLOBAL-ID=EBAY-US&OPERATION-NAME=findItemsByKeywords&keywords=ernesto+laclau
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
X-EBAY-SOA-SECURITY-APPNAME:
|
11
|
-
- APP_ID
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
Server:
|
18
|
-
- Apache-Coyote/1.1
|
19
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
20
|
-
- '50345688'
|
21
|
-
X-EBAY-SOA-REQUEST-ID:
|
22
|
-
- 145ed3a1-e060-a471-d300-04c0ffffe565!FindingService!10.71.29.48!v3apifindingsandboxcore[!FindItemServiceNextGen!10.71.29.48!v3apifindingsandboxcore[]]
|
23
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
24
|
-
- 1.12.0
|
25
|
-
X-EBAY-SOA-LOCALE-LIST:
|
26
|
-
- en-US_US
|
27
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
28
|
-
- NONE
|
29
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
30
|
-
- XML
|
31
|
-
X-EBAY-SOA-GLOBAL-ID:
|
32
|
-
- EBAY-US
|
33
|
-
X-EBAY-SOA-OPERATION-NAME:
|
34
|
-
- findItemsByKeywords
|
35
|
-
X-EBAY-SOA-SERVICE-NAME:
|
36
|
-
- "{https://www.ebay.com/marketplace/search/v1/services}FindingService"
|
37
|
-
Content-Type:
|
38
|
-
- text/xml;charset=UTF-8
|
39
|
-
Transfer-Encoding:
|
40
|
-
- ''
|
41
|
-
Date:
|
42
|
-
- Sun, 11 May 2014 21:39:40 GMT
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: <?xml version='1.0' encoding='UTF-8'?><findItemsByKeywordsResponse xmlns="https://www.ebay.com/marketplace/search/v1/services"><ack>Success</ack><version>1.12.0</version><timestamp>2014-05-11T21:39:40.213Z</timestamp><searchResult
|
46
|
-
count="3"><item><itemId>110108016161</itemId><title>Emancipation(s) By Laclau,
|
47
|
-
Ernesto</title><globalId>EBAY-US</globalId><subtitle>Always Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
48
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Emancipation-s-Laclau-Ernesto-/110108016161</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
49
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
50
|
-
currencyId="USD">16.39</currentPrice><convertedCurrentPrice currencyId="USD">16.39</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H37M11S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:11:51.000Z</startTime><endTime>2014-06-05T19:16:51.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
51
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
52
|
-
currencyId="USD">20.48</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item><item><itemId>110108016439</itemId><title>On
|
53
|
-
Populist Reason By Laclau, Ernesto</title><globalId>EBAY-US</globalId><subtitle>Always
|
54
|
-
Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
55
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Populist-Reason-Laclau-Ernesto-/110108016439</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
56
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
57
|
-
currencyId="USD">21.52</currentPrice><convertedCurrentPrice currencyId="USD">21.52</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H37M24S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:12:04.000Z</startTime><endTime>2014-06-05T19:17:04.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
58
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
59
|
-
currencyId="USD">27.15</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item><item><itemId>110108023405</itemId><title>Hegemony
|
60
|
-
and Socialist Strategy By Laclau, Ernesto/ Mouffe, Chantal</title><globalId>EBAY-US</globalId><subtitle>Always
|
61
|
-
Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
62
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Hegemony-and-Socialist-Strategy-Laclau-Ernesto-Mouffe-Chantal-/110108023405</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
63
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
64
|
-
currencyId="USD">21.52</currentPrice><convertedCurrentPrice currencyId="USD">21.52</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H43M34S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:18:14.000Z</startTime><endTime>2014-06-05T19:23:14.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
65
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
66
|
-
currencyId="USD">27.15</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item></searchResult><paginationOutput><pageNumber>1</pageNumber><entriesPerPage>100</entriesPerPage><totalPages>1</totalPages><totalEntries>3</totalEntries></paginationOutput><itemSearchURL>https://shop.sandbox.ebay.com/i.html?_nkw=ernesto+laclau&_ddo=1&_ipg=100&_pgn=1</itemSearchURL></findItemsByKeywordsResponse>
|
67
|
-
http_version:
|
68
|
-
recorded_at: Sun, 11 May 2014 21:39:39 GMT
|
69
|
-
- request:
|
70
|
-
method: get
|
71
|
-
uri: https://svcs.sandbox.ebay.com/services/search/FindingService/v1?GLOBAL-ID=EBAY-US&OPERATION-NAME=findItemsByKeywords&RESPONSEENCODING=JSON&keywords=ernesto+laclau
|
72
|
-
body:
|
73
|
-
encoding: US-ASCII
|
74
|
-
string: ''
|
75
|
-
headers:
|
76
|
-
X-EBAY-SOA-SECURITY-APPNAME:
|
77
|
-
- APP_ID
|
78
|
-
response:
|
79
|
-
status:
|
80
|
-
code: 200
|
81
|
-
message:
|
82
|
-
headers:
|
83
|
-
Server:
|
84
|
-
- Apache-Coyote/1.1
|
85
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
86
|
-
- '42677594'
|
87
|
-
X-EBAY-SOA-REQUEST-ID:
|
88
|
-
- 145ed3a2-2120-a471-d312-7542ffffe3c9!FindingService!10.71.29.49!v3apifindingsandboxcore[!FindItemServiceNextGen!10.71.29.49!v3apifindingsandboxcore[]]
|
89
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
90
|
-
- 1.12.0
|
91
|
-
X-EBAY-SOA-LOCALE-LIST:
|
92
|
-
- en-US_US
|
93
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
94
|
-
- NONE
|
95
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
96
|
-
- XML
|
97
|
-
X-EBAY-SOA-GLOBAL-ID:
|
98
|
-
- EBAY-US
|
99
|
-
X-EBAY-SOA-OPERATION-NAME:
|
100
|
-
- findItemsByKeywords
|
101
|
-
X-EBAY-SOA-SERVICE-NAME:
|
102
|
-
- "{https://www.ebay.com/marketplace/search/v1/services}FindingService"
|
103
|
-
Content-Type:
|
104
|
-
- text/xml;charset=UTF-8
|
105
|
-
Transfer-Encoding:
|
106
|
-
- ''
|
107
|
-
Date:
|
108
|
-
- Sun, 11 May 2014 21:39:41 GMT
|
109
|
-
body:
|
110
|
-
encoding: UTF-8
|
111
|
-
string: <?xml version='1.0' encoding='UTF-8'?><findItemsByKeywordsResponse xmlns="https://www.ebay.com/marketplace/search/v1/services"><ack>Success</ack><version>1.12.0</version><timestamp>2014-05-11T21:39:41.233Z</timestamp><searchResult
|
112
|
-
count="3"><item><itemId>110108016161</itemId><title>Emancipation(s) By Laclau,
|
113
|
-
Ernesto</title><globalId>EBAY-US</globalId><subtitle>Always Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
114
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Emancipation-s-Laclau-Ernesto-/110108016161</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
115
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
116
|
-
currencyId="USD">16.39</currentPrice><convertedCurrentPrice currencyId="USD">16.39</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H37M10S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:11:51.000Z</startTime><endTime>2014-06-05T19:16:51.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
117
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
118
|
-
currencyId="USD">20.48</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item><item><itemId>110108016439</itemId><title>On
|
119
|
-
Populist Reason By Laclau, Ernesto</title><globalId>EBAY-US</globalId><subtitle>Always
|
120
|
-
Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
121
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Populist-Reason-Laclau-Ernesto-/110108016439</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
122
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
123
|
-
currencyId="USD">21.52</currentPrice><convertedCurrentPrice currencyId="USD">21.52</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H37M23S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:12:04.000Z</startTime><endTime>2014-06-05T19:17:04.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
124
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
125
|
-
currencyId="USD">27.15</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item><item><itemId>110108023405</itemId><title>Hegemony
|
126
|
-
and Socialist Strategy By Laclau, Ernesto/ Mouffe, Chantal</title><globalId>EBAY-US</globalId><subtitle>Always
|
127
|
-
Save with UnbeatableSale!</subtitle><primaryCategory><categoryId>2228</categoryId><categoryName>Textbooks,
|
128
|
-
Education</categoryName></primaryCategory><viewItemURL>https://cgi.sandbox.ebay.com/Hegemony-and-Socialist-Strategy-Laclau-Ernesto-Mouffe-Chantal-/110108023405</viewItemURL><paymentMethod>PayPal</paymentMethod><autoPay>false</autoPay><postalCode>08701</postalCode><location>Lakewood,NJ,USA</location><country>US</country><shippingInfo><shippingServiceCost
|
129
|
-
currencyId="USD">0.0</shippingServiceCost><shippingType>Free</shippingType><shipToLocations>US</shipToLocations><expeditedShipping>false</expeditedShipping><oneDayShippingAvailable>false</oneDayShippingAvailable><handlingTime>4</handlingTime></shippingInfo><sellingStatus><currentPrice
|
130
|
-
currencyId="USD">21.52</currentPrice><convertedCurrentPrice currencyId="USD">21.52</convertedCurrentPrice><sellingState>Active</sellingState><timeLeft>P24DT21H43M33S</timeLeft></sellingStatus><listingInfo><bestOfferEnabled>false</bestOfferEnabled><buyItNowAvailable>false</buyItNowAvailable><startTime>2012-10-13T19:18:14.000Z</startTime><endTime>2014-06-05T19:23:14.000Z</endTime><listingType>FixedPrice</listingType><gift>false</gift></listingInfo><returnsAccepted>true</returnsAccepted><condition><conditionId>1000</conditionId><conditionDisplayName>Brand
|
131
|
-
New</conditionDisplayName></condition><isMultiVariationListing>false</isMultiVariationListing><discountPriceInfo><originalRetailPrice
|
132
|
-
currencyId="USD">27.15</originalRetailPrice><pricingTreatment>STP</pricingTreatment><soldOnEbay>false</soldOnEbay><soldOffEbay>false</soldOffEbay></discountPriceInfo><topRatedListing>false</topRatedListing></item></searchResult><paginationOutput><pageNumber>1</pageNumber><entriesPerPage>100</entriesPerPage><totalPages>1</totalPages><totalEntries>3</totalEntries></paginationOutput><itemSearchURL>https://shop.sandbox.ebay.com/i.html?_nkw=ernesto+laclau&_ddo=1&_ipg=100&_pgn=1</itemSearchURL></findItemsByKeywordsResponse>
|
133
|
-
http_version:
|
134
|
-
recorded_at: Sun, 11 May 2014 21:39:40 GMT
|
135
|
-
recorded_with: VCR 2.9.0
|
@@ -1,93 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://svcs.sandbox.ebay.com/MerchandisingService?GLOBAL-ID=EBAY-US&OPERATION-NAME=getMostWatchedItems&RESPONSE-DATA-FORMAT=JSON
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
EBAY-SOA-CONSUMER-ID:
|
11
|
-
- APP_ID
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
Server:
|
18
|
-
- Apache-Coyote/1.1
|
19
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
20
|
-
- '7274306'
|
21
|
-
X-EBAY-SOA-REQUEST-ID:
|
22
|
-
- 145ed416-8030-a471-d5a1-2c31fff862f3!MerchandisingService!10.71.29.90!v3soa1sandboxcore[]
|
23
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
24
|
-
- 1.5.0
|
25
|
-
X-EBAY-SOA-LOCALE-LIST:
|
26
|
-
- en-US_US
|
27
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
28
|
-
- NONE
|
29
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
30
|
-
- JSON
|
31
|
-
X-EBAY-SOA-GLOBAL-ID:
|
32
|
-
- EBAY-US
|
33
|
-
X-EBAY-SOA-OPERATION-NAME:
|
34
|
-
- getMostWatchedItems
|
35
|
-
X-EBAY-SOA-SERVICE-NAME:
|
36
|
-
- "{https://www.ebay.com/marketplace/services}MerchandisingService"
|
37
|
-
Content-Type:
|
38
|
-
- application/json;charset=UTF-8
|
39
|
-
Transfer-Encoding:
|
40
|
-
- ''
|
41
|
-
Date:
|
42
|
-
- Sun, 11 May 2014 21:47:37 GMT
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: '{"getMostWatchedItemsResponse":{"ack":"Success","version":"1.5.0","timestamp":"2014-05-11T21:47:37.875Z"}}'
|
46
|
-
http_version:
|
47
|
-
recorded_at: Sun, 11 May 2014 21:47:37 GMT
|
48
|
-
- request:
|
49
|
-
method: get
|
50
|
-
uri: https://svcs.sandbox.ebay.com/MerchandisingService?GLOBAL-ID=EBAY-US&OPERATION-NAME=getMostWatchedItems
|
51
|
-
body:
|
52
|
-
encoding: US-ASCII
|
53
|
-
string: ''
|
54
|
-
headers:
|
55
|
-
EBAY-SOA-CONSUMER-ID:
|
56
|
-
- APP_ID
|
57
|
-
response:
|
58
|
-
status:
|
59
|
-
code: 200
|
60
|
-
message:
|
61
|
-
headers:
|
62
|
-
Server:
|
63
|
-
- Apache-Coyote/1.1
|
64
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
65
|
-
- '7175452'
|
66
|
-
X-EBAY-SOA-REQUEST-ID:
|
67
|
-
- 145ed416-b280-a471-d5b7-9097fff8873c!MerchandisingService!10.71.29.91!v3soa1sandboxcore[]
|
68
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
69
|
-
- 1.5.0
|
70
|
-
X-EBAY-SOA-LOCALE-LIST:
|
71
|
-
- en-US_US
|
72
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
73
|
-
- NONE
|
74
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
75
|
-
- XML
|
76
|
-
X-EBAY-SOA-GLOBAL-ID:
|
77
|
-
- EBAY-US
|
78
|
-
X-EBAY-SOA-OPERATION-NAME:
|
79
|
-
- getMostWatchedItems
|
80
|
-
X-EBAY-SOA-SERVICE-NAME:
|
81
|
-
- "{https://www.ebay.com/marketplace/services}MerchandisingService"
|
82
|
-
Content-Type:
|
83
|
-
- text/xml;charset=UTF-8
|
84
|
-
Transfer-Encoding:
|
85
|
-
- ''
|
86
|
-
Date:
|
87
|
-
- Sun, 11 May 2014 21:47:37 GMT
|
88
|
-
body:
|
89
|
-
encoding: UTF-8
|
90
|
-
string: <?xml version='1.0' encoding='UTF-8'?><getMostWatchedItemsResponse xmlns="https://www.ebay.com/marketplace/services"><ack>Success</ack><version>1.5.0</version><timestamp>2014-05-11T21:47:38.664Z</timestamp></getMostWatchedItemsResponse>
|
91
|
-
http_version:
|
92
|
-
recorded_at: Sun, 11 May 2014 21:47:37 GMT
|
93
|
-
recorded_with: VCR 2.9.0
|
data/test/cassettes/product.yml
DELETED
@@ -1,101 +0,0 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://svcs.sandbox.ebay.com/services/marketplacecatalog/ProductService/v1?GLOBAL-ID=EBAY-US&OPERATION-NAME=getProductDetails&productDetailsRequest.dataset=DisplayableSearchResults&productDetailsRequest.productIdentifier.ePID=83414
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
X-EBAY-SOA-SECURITY-APPNAME:
|
11
|
-
- APP_ID
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message:
|
16
|
-
headers:
|
17
|
-
Server:
|
18
|
-
- Apache-Coyote/1.1
|
19
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
20
|
-
- '732529592'
|
21
|
-
X-EBAY-SOA-REQUEST-ID:
|
22
|
-
- 145ed48e-23c0-a471-d300-04c0ffffe55d!ProductService!10.71.29.48!v3apifindingsandboxcore[!CatalogService!10.71.29.78!v3mddssandboxcore[]]
|
23
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
24
|
-
- 1.3.1
|
25
|
-
X-EBAY-SOA-LOCALE-LIST:
|
26
|
-
- en-US_US
|
27
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
28
|
-
- NONE
|
29
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
30
|
-
- XML
|
31
|
-
X-EBAY-SOA-GLOBAL-ID:
|
32
|
-
- EBAY-US
|
33
|
-
X-EBAY-SOA-OPERATION-NAME:
|
34
|
-
- getProductDetails
|
35
|
-
X-EBAY-SOA-SERVICE-NAME:
|
36
|
-
- "{https://www.ebay.com/marketplace/marketplacecatalog/v1/services}ProductService"
|
37
|
-
Content-Type:
|
38
|
-
- text/xml;charset=UTF-8
|
39
|
-
Transfer-Encoding:
|
40
|
-
- ''
|
41
|
-
Date:
|
42
|
-
- Sun, 11 May 2014 21:55:48 GMT
|
43
|
-
body:
|
44
|
-
encoding: UTF-8
|
45
|
-
string: <?xml version='1.0' encoding='UTF-8'?><getProductDetailsResponse xmlns="https://www.ebay.com/marketplace/marketplacecatalog/v1/services"><ack>Success</ack><version>1.3.1</version><timestamp>2014-05-11T21:55:48.635Z</timestamp><product><productIdentifier><ePID>83414</ePID></productIdentifier><stockPhotoURL><thumbnail><value>https://i.ebayimg.com/00/$T2eC16F,!y8E9s2fjE4sBRY5q7ep6Q~~_0.JPG?set_id=89040003C1</value></thumbnail><standard><value>https://i.ebayimg.com/00/$T2eC16F,!y8E9s2fjE4sBRY5q7ep6Q~~_7.JPG?set_id=89040003C1</value></standard></stockPhotoURL><productDetails><propertyName>PRODUCT_FAMILY_ID</propertyName><value><number><value>1504161</value></number></value></productDetails><productDetails><propertyName>ISBN</propertyName><value><text><value>0231056699</value></text></value></productDetails><productDetails><propertyName>Publication
|
46
|
-
Year</propertyName><value><text><value>19850000</value></text></value></productDetails><productDetails><propertyName>EAN</propertyName><value><text><value>9780231056694</value></text></value></productDetails><productDetails><propertyName>Author</propertyName><value><text><value>Gilles
|
47
|
-
Deleuze</value></text></value></productDetails><productDetails><propertyName>CP_NAME</propertyName><value><text><value>Nietzsche
|
48
|
-
and Philosophy by Gilles Deleuze (1985, Paperback)</value></text></value></productDetails><productDetails><propertyName>Format_Computed</propertyName><value><text><value>Trade
|
49
|
-
Paper</value></text></value></productDetails><productStatus><excludeForeBaySelling>false</excludeForeBaySelling><excludeForeBayReviews>false</excludeForeBayReviews><excludeForHalfSelling>false</excludeForHalfSelling></productStatus><type>Member</type></product></getProductDetailsResponse>
|
50
|
-
http_version:
|
51
|
-
recorded_at: Sun, 11 May 2014 21:55:48 GMT
|
52
|
-
- request:
|
53
|
-
method: get
|
54
|
-
uri: https://svcs.sandbox.ebay.com/services/marketplacecatalog/ProductService/v1?GLOBAL-ID=EBAY-US&OPERATION-NAME=getProductDetails&RESPONSE-DATA-FORMAT=JSON&productDetailsRequest.dataset=DisplayableSearchResults&productDetailsRequest.productIdentifier.ePID=83414
|
55
|
-
body:
|
56
|
-
encoding: US-ASCII
|
57
|
-
string: ''
|
58
|
-
headers:
|
59
|
-
X-EBAY-SOA-SECURITY-APPNAME:
|
60
|
-
- APP_ID
|
61
|
-
response:
|
62
|
-
status:
|
63
|
-
code: 200
|
64
|
-
message:
|
65
|
-
headers:
|
66
|
-
Server:
|
67
|
-
- Apache-Coyote/1.1
|
68
|
-
X-EBAY-SOA-SERVICE-METRICS:
|
69
|
-
- '261228349'
|
70
|
-
X-EBAY-SOA-REQUEST-ID:
|
71
|
-
- 145ed508-86d0-a471-d300-04c0ffffe559!ProductService!10.71.29.48!v3apifindingsandboxcore[!CatalogService!10.71.29.78!v3mddssandboxcore[]]
|
72
|
-
X-EBAY-SOA-SERVICE-VERSION:
|
73
|
-
- 1.3.1
|
74
|
-
X-EBAY-SOA-LOCALE-LIST:
|
75
|
-
- en-US_US
|
76
|
-
X-EBAY-SOA-MESSAGE-PROTOCOL:
|
77
|
-
- NONE
|
78
|
-
X-EBAY-SOA-RESPONSE-DATA-FORMAT:
|
79
|
-
- JSON
|
80
|
-
X-EBAY-SOA-GLOBAL-ID:
|
81
|
-
- EBAY-US
|
82
|
-
X-EBAY-SOA-OPERATION-NAME:
|
83
|
-
- getProductDetails
|
84
|
-
X-EBAY-SOA-SERVICE-NAME:
|
85
|
-
- "{https://www.ebay.com/marketplace/marketplacecatalog/v1/services}ProductService"
|
86
|
-
Content-Type:
|
87
|
-
- text/plain;charset=UTF-8
|
88
|
-
Transfer-Encoding:
|
89
|
-
- ''
|
90
|
-
Date:
|
91
|
-
- Sun, 11 May 2014 22:04:09 GMT
|
92
|
-
body:
|
93
|
-
encoding: UTF-8
|
94
|
-
string: '{"getProductDetailsResponse":[{"ack":["Success"],"version":["1.3.1"],"timestamp":["2014-05-11T22:04:09.463Z"],"product":[{"productIdentifier":[{"ePID":["83414"]}],"stockPhotoURL":[{"thumbnail":[{"value":["http:\/\/i.ebayimg.com\/00\/$T2eC16F,!y8E9s2fjE4sBRY5q7ep6Q~~_0.JPG?set_id=89040003C1"]}],"standard":[{"value":["http:\/\/i.ebayimg.com\/00\/$T2eC16F,!y8E9s2fjE4sBRY5q7ep6Q~~_7.JPG?set_id=89040003C1"]}]}],"productDetails":[{"propertyName":["PRODUCT_FAMILY_ID"],"value":[{"number":[{"value":["1504161"]}]}]},{"propertyName":["ISBN"],"value":[{"text":[{"value":["0231056699"]}]}]},{"propertyName":["Publication
|
95
|
-
Year"],"value":[{"text":[{"value":["19850000"]}]}]},{"propertyName":["EAN"],"value":[{"text":[{"value":["9780231056694"]}]}]},{"propertyName":["Author"],"value":[{"text":[{"value":["Gilles
|
96
|
-
Deleuze"]}]}]},{"propertyName":["CP_NAME"],"value":[{"text":[{"value":["Nietzsche
|
97
|
-
and Philosophy by Gilles Deleuze (1985, Paperback)"]}]}]},{"propertyName":["Format_Computed"],"value":[{"text":[{"value":["Trade
|
98
|
-
Paper"]}]}]}],"productStatus":[{"excludeForeBaySelling":["false"],"excludeForeBayReviews":["false"],"excludeForHalfSelling":["false"]}],"type":["Member"]}]}]}'
|
99
|
-
http_version:
|
100
|
-
recorded_at: Sun, 11 May 2014 22:04:08 GMT
|
101
|
-
recorded_with: VCR 2.9.0
|