Module: VkApiSimple::Photos::Move

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

Overview

Move photo to another album

Instance Method Summary collapse

Instance Method Details

#move(args = {}) ⇒ Object



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

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