Sha256: ecc869f6029f9ac49f73bc6283a93bc4a45bc5a99efa5691308875dbc01f6410
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
module VkApiSimple class Market # Save uploaded image at server module Add def add(args = {}) response = RestClient.post("#{BASE_URI}add?access_token=#{token}&owner_id=-#{args[:owner_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vk_api_simple-0.2.4 | lib/vk_api_simple/market/add.rb |
vk_api_simple-0.2.3 | lib/vk_api_simple/market/add.rb |