t4traw/yahoo_store_api

View on GitHub
lib/yahoo_store_api/image/upload_item_image_pack.rb

Summary

Maintainability
A
0 mins
Test Coverage
module YahooStoreApi
  module Image
    include YahooStoreApi::Helper

    def upload_item_image_pack(zip_path)
      request = {
        file: Faraday::UploadIO.new(zip_path, "application/zip"),
      }

      handler connection("uploadItemImagePack", with_seller_id: true).post { |r|
        r.body = request
      }
    end
  end
end