Module: VkApiSimple::Market::Delete

Included in:
VkApiSimple::Market
Defined in:
lib/vk_api_simple/market/delete.rb

Overview

Delete image from market

Instance Method Summary collapse

Instance Method Details

#delete(args = {}) ⇒ Object



5
6
7
8
# File 'lib/vk_api_simple/market/delete.rb', line 5

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