Module: VkApiSimple::Market::Edit
- Included in:
- VkApiSimple::Market
- Defined in:
- lib/vk_api_simple/market/edit.rb
Overview
Edit image in the market
Instance Method Summary collapse
Instance Method Details
#edit(args = {}) ⇒ Object
5 6 7 8 |
# File 'lib/vk_api_simple/market/edit.rb', line 5 def edit(args = {}) response = RestClient.post("#{BASE_URI}edit?access_token=#{token}&owner_id=-#{args[:owner_id]}&item_id=#{args[:item_id]}&category_id=#{args[:category_id]}&price=#{args[:price]}&main_photo_id=#{args[:main_photo_id]}&v=#{api_version}", name: args[:name], description: args[:description]) JSON.parse(response.body) end |