Module: VkApiSimple::Photos::Save

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

Overview

Save uploaded image at server

Instance Method Summary collapse

Instance Method Details

#save(args = {}) ⇒ Object



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

def save(args = {})
  response = RestClient.post("#{BASE_URI}save?access_token=#{token}&album_id=#{args[:album_id]}&group_id=#{args[:group_id]}&server=#{args[:server]}&photos_list=#{args[:photos_list]}&hash=#{args[:hash]}&v=#{api_version}", caption: args[:caption])
  JSON.parse(response.body)
end