yahoo_store_api 0.2.0 → 0.2.1
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 +3 -0
- data/lib/yahoo_store_api/image/upload_item_image_pack.rb +15 -0
- data/lib/yahoo_store_api/image.rb +1 -0
- data/lib/yahoo_store_api/version.rb +1 -1
- data/lib/yahoo_store_api.rb +2 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4f9d63dbb6b0abef96a88ac45a98cac48a80bb3ab7851e6228e02a7be76b040
|
4
|
+
data.tar.gz: 2ff5255dc7a35d7782d4354f255adb2455dde492c82e0df3349be3a5f74caf27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b91652ab266410d9ee3ce83c2d1b508c641c63483a5533a78dbeed22511fb5eb73515203e2f28172ce2ef44d99d006256f216f6f917b18489b20ece60c92295b
|
7
|
+
data.tar.gz: 7bd4f44e9dd8ce86415329435fe9a990cf6a8c400e70ec14b632dc26856a4fdc0f5285e883a86a3199d2f6a8d225f466d6432f1f567ae98417c696fef18c186e
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# YahooStoreApi
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/yahoo_store_api)
|
3
4
|
[](https://travis-ci.org/t4traw/yahoo_store_api)
|
4
5
|
[](https://codeclimate.com/github/t4traw/yahoo_store_api)
|
5
6
|
|
@@ -14,6 +15,8 @@ Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを
|
|
14
15
|
* 商品登録API(`set_item`)
|
15
16
|
* 商品アップロードAPI(`upload_item_file`)
|
16
17
|
* 商品削除API(`delete_item`)
|
18
|
+
* 画像に関連するAPI
|
19
|
+
* 商品画像一括アップロードAPI(`upload_item_image_pack`)
|
17
20
|
* 在庫に関連するAPI
|
18
21
|
* 在庫参照API(`get_stock`)
|
19
22
|
* 在庫更新API(`set_stock`)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module YahooStoreApi
|
2
|
+
module Image
|
3
|
+
include YahooStoreApi::Helper
|
4
|
+
|
5
|
+
def upload_item_image_pack(zip_path)
|
6
|
+
request = {
|
7
|
+
file: Faraday::UploadIO.new(zip_path, "application/zip"),
|
8
|
+
}
|
9
|
+
|
10
|
+
handler connection("uploadItemImagePack", with_seller_id: true).post { |r|
|
11
|
+
r.body = request
|
12
|
+
}
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require "yahoo_store_api/image/upload_item_image_pack"
|
data/lib/yahoo_store_api.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require "yahoo_store_api/version"
|
2
2
|
require "yahoo_store_api/helper.rb"
|
3
3
|
require "yahoo_store_api/item.rb"
|
4
|
+
require "yahoo_store_api/image.rb"
|
4
5
|
require "yahoo_store_api/stock.rb"
|
5
6
|
require "yahoo_store_api/publish.rb"
|
6
7
|
|
@@ -17,6 +18,7 @@ module YahooStoreApi
|
|
17
18
|
class Client
|
18
19
|
attr_reader :refresh_token
|
19
20
|
include YahooStoreApi::Item
|
21
|
+
include YahooStoreApi::Image
|
20
22
|
include YahooStoreApi::Stock
|
21
23
|
include YahooStoreApi::Publish
|
22
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yahoo_store_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- t4traw
|
@@ -194,6 +194,8 @@ files:
|
|
194
194
|
- Rakefile
|
195
195
|
- lib/yahoo_store_api.rb
|
196
196
|
- lib/yahoo_store_api/helper.rb
|
197
|
+
- lib/yahoo_store_api/image.rb
|
198
|
+
- lib/yahoo_store_api/image/upload_item_image_pack.rb
|
197
199
|
- lib/yahoo_store_api/item.rb
|
198
200
|
- lib/yahoo_store_api/item/delete_item.rb
|
199
201
|
- lib/yahoo_store_api/item/edit_item.rb
|