rakuten_product_api 0.2.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/.rubocop.yml +1 -1
- data/CHANGELOG.md +2 -1
- data/Gemfile.lock +20 -17
- data/README.md +2 -2
- data/lib/rakuten_product_api/authenticate.rb +1 -1
- data/lib/rakuten_product_api/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: 640eb7cc6cf605f6baaad814dc944e842a55ec982b0a226c3f038d2c03a0c3d8
|
4
|
+
data.tar.gz: 4f5dcc9b63280cf648b697b8aafe3f0b44ce99659dbf0ba5f7950a0c5b498400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d111c75c1f8c10f43628afed263ff978b9b10f58b4a6edadca6a17318c035b9d9342e49c204e0270f3189c7521e3f262fcab00d1515516448c3eef4745eddc44
|
7
|
+
data.tar.gz: 518946a3c24f149be973bbaf9b95e3e62de2d53c0023d0062d30abe8cef147021d38d03bc761669fdf753e1ae8b0190ec4513f727f72765b49a44fa42d71497c
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rakuten_product_api (0.
|
4
|
+
rakuten_product_api (0.4.0)
|
5
5
|
nokogiri (~> 1)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,32 +9,35 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
11
|
byebug (11.1.3)
|
12
|
-
minitest (5.
|
13
|
-
nokogiri (1.
|
12
|
+
minitest (5.15.0)
|
13
|
+
nokogiri (1.13.4-arm64-darwin)
|
14
14
|
racc (~> 1.4)
|
15
|
-
|
16
|
-
|
15
|
+
nokogiri (1.13.4-x86_64-darwin)
|
16
|
+
racc (~> 1.4)
|
17
|
+
parallel (1.22.1)
|
18
|
+
parser (3.1.2.0)
|
17
19
|
ast (~> 2.4.1)
|
18
|
-
racc (1.
|
19
|
-
rainbow (3.
|
20
|
-
rake (13.0.
|
21
|
-
regexp_parser (2.0
|
22
|
-
rexml (3.2.
|
23
|
-
rubocop (1.
|
20
|
+
racc (1.6.0)
|
21
|
+
rainbow (3.1.1)
|
22
|
+
rake (13.0.6)
|
23
|
+
regexp_parser (2.3.0)
|
24
|
+
rexml (3.2.5)
|
25
|
+
rubocop (1.27.0)
|
24
26
|
parallel (~> 1.10)
|
25
|
-
parser (>= 3.
|
27
|
+
parser (>= 3.1.0.0)
|
26
28
|
rainbow (>= 2.2.2, < 4.0)
|
27
29
|
regexp_parser (>= 1.8, < 3.0)
|
28
30
|
rexml
|
29
|
-
rubocop-ast (>= 1.
|
31
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
30
32
|
ruby-progressbar (~> 1.7)
|
31
33
|
unicode-display_width (>= 1.4.0, < 3.0)
|
32
|
-
rubocop-ast (1.
|
33
|
-
parser (>=
|
34
|
+
rubocop-ast (1.17.0)
|
35
|
+
parser (>= 3.1.1.0)
|
34
36
|
ruby-progressbar (1.11.0)
|
35
|
-
unicode-display_width (2.
|
37
|
+
unicode-display_width (2.1.0)
|
36
38
|
|
37
39
|
PLATFORMS
|
40
|
+
arm64-darwin-21
|
38
41
|
x86_64-darwin-20
|
39
42
|
|
40
43
|
DEPENDENCIES
|
@@ -45,4 +48,4 @@ DEPENDENCIES
|
|
45
48
|
rubocop (~> 1.7)
|
46
49
|
|
47
50
|
BUNDLED WITH
|
48
|
-
2.
|
51
|
+
2.3.10
|
data/README.md
CHANGED
@@ -45,7 +45,7 @@ Once you have configured the library, you can create a client.
|
|
45
45
|
client = RakutenProductApi::Client.new
|
46
46
|
|
47
47
|
client.username
|
48
|
-
=> "
|
48
|
+
=> "your-rakuten-username"
|
49
49
|
```
|
50
50
|
|
51
51
|
This client should be threadsafe. Configuration values are local to your instance.
|
@@ -68,7 +68,7 @@ client.access_token
|
|
68
68
|
## Querying
|
69
69
|
### Search for keywords:
|
70
70
|
|
71
|
-
You can specify which merchants to query by using `mid: 38131`
|
71
|
+
You can specify which merchants to query by using mid paramater. For example Kobo Australia would be: `mid: 38131`
|
72
72
|
|
73
73
|
```ruby
|
74
74
|
results = client.search(keyword: 'Murderbot', mid: 38131)
|
@@ -60,7 +60,7 @@ module RakutenProductApi
|
|
60
60
|
def process_auth_response(res)
|
61
61
|
if res.code == "200"
|
62
62
|
doc = JSON.parse(res.body)
|
63
|
-
@expires_in = doc["expires_in"]
|
63
|
+
@expires_in = doc["expires_in"]&.to_i
|
64
64
|
@refresh_token = doc["refresh_token"]
|
65
65
|
@access_token = doc["access_token"]
|
66
66
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rakuten_product_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Milne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.3.7
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Client for Rakutenmarketing.com.
|