yahoo_store_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +21 -0
- data/README.md +5 -3
- data/lib/yahoo_store_api/version.rb +1 -1
- data/yahoo_store_api.gemspec +3 -3
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9e908e0799aac49b3bc5165e24f167f8f01742e
|
4
|
+
data.tar.gz: '08bfd192bbc39794560aafdac3d8ffc9463ff05b'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f1d2e26d94671091fcb770724aed351fc916efb38a10d75b2d0f3151a3dfd5afa07c66bb6b83bd22b29bc18279df741c57ae5870a39620e56068350b3ec7e5b
|
7
|
+
data.tar.gz: 0e55ad4a4794ff54a3394e54c83bb3710a2575cc318f62a4a6ec67fd4b1bf3045b1734e81b492cd2ae8ba9f19286b1c02efe21e0bdf4e535af67285ef3d2e5ed
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 t4traw
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
CHANGED
@@ -21,6 +21,8 @@ Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを
|
|
21
21
|
|
22
22
|
## Installation
|
23
23
|
|
24
|
+
Add this line to your application's Gemfile:
|
25
|
+
|
24
26
|
```ruby
|
25
27
|
gem 'yahoo_store_api'
|
26
28
|
```
|
@@ -42,7 +44,7 @@ stateやnonceなどは[Authorizationエンドポイント](https://developer.yah
|
|
42
44
|
ストアアカウント、上で登録したアプリケーションid、シークレット、取得した認証コードでインスタンスを生成します。
|
43
45
|
|
44
46
|
```ruby
|
45
|
-
client =
|
47
|
+
client = YahooStoreApi::Client.new(
|
46
48
|
seller_id: YOUR_STORE_ID, # ストアアカウントid
|
47
49
|
application_id: YOUR_APPLICATION_ID, # アプリケーションid
|
48
50
|
application_secret: YOUR_SECRET, # シークレット
|
@@ -57,7 +59,7 @@ puts client.refresh_token
|
|
57
59
|
```
|
58
60
|
|
59
61
|
```ruby
|
60
|
-
client =
|
62
|
+
client = YahooStoreApi::Client.new(
|
61
63
|
seller_id: YOUR_STORE_ID, # ストアアカウントid
|
62
64
|
application_id: YOUR_APPLICATION_ID, # アプリケーションid
|
63
65
|
application_secret: YOUR_SECRET, # シークレット
|
@@ -119,5 +121,5 @@ stock.all
|
|
119
121
|
pub = client.reserve_publish
|
120
122
|
|
121
123
|
# 結果を取得
|
122
|
-
|
124
|
+
pub.status
|
123
125
|
```
|
data/yahoo_store_api.gemspec
CHANGED
@@ -21,9 +21,9 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency "faraday", '
|
25
|
-
spec.add_dependency "activesupport", '
|
26
|
-
spec.add_dependency "activemodel", '
|
24
|
+
spec.add_dependency "faraday", '>= 0.12.1'
|
25
|
+
spec.add_dependency "activesupport", '>= 4.2.8'
|
26
|
+
spec.add_dependency "activemodel", '>= 4.2.8'
|
27
27
|
spec.add_dependency "builder"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler", "~> 1.14"
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yahoo_store_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- t4traw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.12.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.12.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 4.2.8
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 4.2.8
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: activemodel
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 4.2.8
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 4.2.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: builder
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -188,6 +188,7 @@ files:
|
|
188
188
|
- ".gitignore"
|
189
189
|
- ".travis.yml"
|
190
190
|
- Gemfile
|
191
|
+
- LICENSE
|
191
192
|
- README.md
|
192
193
|
- Rakefile
|
193
194
|
- lib/yahoo_store_api.rb
|