yahoo_store_api 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f425884881906edb17b5b1901b37091ca193f0e14190bb6cacc1fc62c3d58856
4
- data.tar.gz: 316bd70561649a4a1b7620c754fadc7d04138732fde60b3c46f9aca3421fafdb
3
+ metadata.gz: b4f9d63dbb6b0abef96a88ac45a98cac48a80bb3ab7851e6228e02a7be76b040
4
+ data.tar.gz: 2ff5255dc7a35d7782d4354f255adb2455dde492c82e0df3349be3a5f74caf27
5
5
  SHA512:
6
- metadata.gz: 3338a934453cdff5a9d72c2577784449966f78e50addbeb7fd1b5246200a82c705b2b58ff7c2d0c4358a4e44dc352c753d6e5f5f9b83fafda02e7eda076c6122
7
- data.tar.gz: ff49e75c26dfef845a4af1c5cf6948c4763c9bfdbf00e813fe2425e7669b2775a0d875f90174035b9e93c7e75cd3a9a62e059740c6bf3ef6731fd58f24b2fbcd
6
+ metadata.gz: b91652ab266410d9ee3ce83c2d1b508c641c63483a5533a78dbeed22511fb5eb73515203e2f28172ce2ef44d99d006256f216f6f917b18489b20ece60c92295b
7
+ data.tar.gz: 7bd4f44e9dd8ce86415329435fe9a990cf6a8c400e70ec14b632dc26856a4fdc0f5285e883a86a3199d2f6a8d225f466d6432f1f567ae98417c696fef18c186e
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # YahooStoreApi
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/yahoo_store_api.svg)](https://badge.fury.io/rb/yahoo_store_api)
3
4
  [![Build Status](https://travis-ci.org/t4traw/yahoo_store_api.svg?branch=master)](https://travis-ci.org/t4traw/yahoo_store_api)
4
5
  [![Code Climate](https://codeclimate.com/github/t4traw/yahoo_store_api/badges/gpa.svg)](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"
@@ -1,3 +1,3 @@
1
1
  module YahooStoreApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -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.0
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