Sha256: e86f79e3c9415b5dabcdcea572b4824c9e359581b71eb0605338bc1e767c2c9f

Contents?: true

Size: 264 Bytes

Versions: 5

Compression:

Stored size: 264 Bytes

Contents

module VkApiSimple
  class Photos
    # Upload image to server
    module UploadImage
      def upload_image(args = {})
        response = RestClient.post(args[:url], file1: File.open(args[:filename]))
        JSON.parse(response.body)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vk_api_simple-0.2.4 lib/vk_api_simple/photos/upload_image.rb
vk_api_simple-0.2.3 lib/vk_api_simple/photos/upload_image.rb
vk_api_simple-0.2.2 lib/vk_api_simple/photos/upload_image.rb
vk_api_simple-0.2.1 lib/vk_api_simple/photos/upload_image.rb
vk_api_simple-0.2.0 lib/vk_api_simple/photos/upload_image.rb