Sha256: ae900a567dd2137e4e82ea021a94b273ea93c077b47826957b9c807c9be613c5

Contents?: true

Size: 369 Bytes

Versions: 5

Compression:

Stored size: 369 Bytes

Contents

module VkApiSimple
  class Photos
    # Returns server's url for uploading photos
    module GetUploadServer
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vk_api_simple-0.2.4 lib/vk_api_simple/photos/get_upload_server.rb
vk_api_simple-0.2.3 lib/vk_api_simple/photos/get_upload_server.rb
vk_api_simple-0.2.2 lib/vk_api_simple/photos/get_upload_server.rb
vk_api_simple-0.2.1 lib/vk_api_simple/photos/get_upload_server.rb
vk_api_simple-0.2.0 lib/vk_api_simple/photos/get_upload_server.rb