ebay-ruby 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ebay/browse.rb +8 -7
- data/lib/ebay/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fd16f623556b875afb1ecb939fbd296ce5b476ba452dd6180fa52bac6085bc4
|
4
|
+
data.tar.gz: b4d55cba32a9a53878f649c3dbcd2d8ee0649fa381a312d809ab5c11b68a19ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f672edffb9231c9a573adf8c1291bf267793c62be549b47b52c3457fac118218d10b1e1d3bc7a733dab0eb7ee3c7dd50beb59e2c331ca3fd2e98f177a784b498
|
7
|
+
data.tar.gz: f32cfa29cf7ec5fdc79683140debd33ee7830e5968e8aea489dbdb6dc34bb274859812a1a1f49a7e9557ccc6b1841b435172843948a8932d8d327c1a1f948a9f
|
data/lib/ebay/browse.rb
CHANGED
@@ -21,6 +21,9 @@ module Ebay
|
|
21
21
|
|
22
22
|
self.endpoint = 'https://api.ebay.com/buy/browse/v1'
|
23
23
|
|
24
|
+
# @return [String]
|
25
|
+
attr_reader :access_token
|
26
|
+
|
24
27
|
# @return [String]
|
25
28
|
attr_reader :campaign_id
|
26
29
|
|
@@ -36,17 +39,15 @@ module Ebay
|
|
36
39
|
# @return [String,nil]
|
37
40
|
attr_reader :market_id
|
38
41
|
|
39
|
-
# @return [String] the application access token
|
40
|
-
def access_token
|
41
|
-
@access_token ||= mint_access_token
|
42
|
-
end
|
43
|
-
|
44
42
|
# Returns a Browse API request instance
|
45
43
|
#
|
44
|
+
# @param [String] access_token
|
46
45
|
# @param [String] campaign_id
|
47
46
|
# @param [String] reference_id
|
48
|
-
# @param [String]
|
49
|
-
|
47
|
+
# @param [String] country
|
48
|
+
# @param [String] zip
|
49
|
+
# @param [String] market_id
|
50
|
+
def initialize(access_token:, campaign_id:, reference_id: nil, country: nil, zip: nil, market_id: 'EBAY_US')
|
50
51
|
@campaign_id = campaign_id
|
51
52
|
@reference_id = reference_id
|
52
53
|
@country = country
|
data/lib/ebay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ebay-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hakan Ensari
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
|
-
rubygems_version: 3.2.
|
197
|
+
rubygems_version: 3.2.22
|
198
198
|
signing_key:
|
199
199
|
specification_version: 4
|
200
200
|
summary: Ruby wrapper to the eBay APIs
|