Module: VkApiSimple::Photos::GetMarketUploadServer

Included in:
VkApiSimple::Photos
Defined in:
lib/vk_api_simple/photos/get_market_upload_server.rb

Overview

Returns server’s url for uploading photos

Instance Method Summary collapse

Instance Method Details

#get_market_upload_server(args = {}) ⇒ Object



5
6
7
8
# File 'lib/vk_api_simple/photos/get_market_upload_server.rb', line 5

def get_market_upload_server(args = {})
  response = RestClient.get("#{BASE_URI}getMarketUploadServer?access_token=#{token}&main_photo=1&group_id=#{args[:group_id]}&v=#{api_version}")
  JSON.parse(response.body)
end