Sha256: bcdcb61a02630820dc2f1a2c77cd76436c83b8223fc594cbb5626eee28441667

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

module VkApiSimple
  class Market
    # Edit image in the market
    module Edit
      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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk_api_simple-0.2.4 lib/vk_api_simple/market/edit.rb