Module: VkApiSimple::Photos::Delete
- Included in:
- VkApiSimple::Photos
- Defined in:
- lib/vk_api_simple/photos/delete.rb
Overview
Delete image from server
Instance Method Summary collapse
Instance Method Details
#delete(args = {}) ⇒ Object
5 6 7 8 |
# File 'lib/vk_api_simple/photos/delete.rb', line 5 def delete(args = {}) response = RestClient.get("#{BASE_URI}delete?access_token=#{token}&owner_id=-#{args[:owner_id]}&photo_id=#{args[:photo_id]}&v=#{api_version}") JSON.parse(response.body) end |