Module: VkApiSimple::Photos::Edit

Included in:
VkApiSimple::Photos
Defined in:
lib/vk_api_simple/photos/edit.rb

Overview

Edit image at server

Instance Method Summary collapse

Instance Method Details

#edit(args = {}) ⇒ Object



5
6
7
8
# File 'lib/vk_api_simple/photos/edit.rb', line 5

def edit(args = {})
  response = RestClient.post("#{BASE_URI}edit?access_token=#{token}&owner_id=-#{args[:owner_id]}&photo_id=#{args[:photo_id]}&v=#{api_version}", caption: args[:caption])
  JSON.parse(response.body)
end