Module: VkApiSimple::Photos::GetUploadServer
- Included in:
- VkApiSimple::Photos
- Defined in:
- lib/vk_api_simple/photos/get_upload_server.rb
Overview
Returns server’s url for uploading photos
Instance Method Summary collapse
Instance Method Details
#get_upload_server(args = {}) ⇒ Object
5 6 7 8 |
# File 'lib/vk_api_simple/photos/get_upload_server.rb', line 5 def get_upload_server(args = {}) response = RestClient.get("#{BASE_URI}getUploadServer?access_token=#{token}&album_id=#{args[:album_id]}&group_id=#{args[:group_id]}&v=#{api_version}") JSON.parse(response.body) end |