Module: VkApiSimple::Photos::SaveMarketPhoto
- Included in:
- VkApiSimple::Photos
- Defined in:
- lib/vk_api_simple/photos/save_market_photo.rb
Overview
Save uploaded image at server
Instance Method Summary collapse
Instance Method Details
#save_market_photo(args = {}) ⇒ Object
5 6 7 8 |
# File 'lib/vk_api_simple/photos/save_market_photo.rb', line 5 def save_market_photo(args = {}) response = RestClient.post("#{BASE_URI}saveMarketPhoto?access_token=#{token}&group_id=#{args[:group_id]}&server=#{args[:server]}&photo=#{args[:photo]}&hash=#{args[:hash]}&crop_data=#{args[:crop_data]}&crop_hash=#{args[:crop_hash]}&v=#{api_version}", {}) JSON.parse(response.body) end |