module VkApiSimple::Photos::UploadImage

Upload image to server

Public Instance Methods

upload_image(args = {}) click to toggle source
# File lib/vk_api_simple/photos/upload_image.rb, line 5
def upload_image(args = {})
  response = RestClient.post(args[:url], file1: File.open(args[:filename]))
  JSON.parse(response.body)
end