def get_object(token, url, dest_folder = nil)
      auth_header = {
          'X-Auth-Token' => token
      }
      query = nil
      dest_file = nil

      if dest_folder.nil?
        dest_file = File.join('./', File.basename(url))
      else
        dest_file = File.join(dest_folder, File.basename(url))
      end

      http_client = HTTPClient.new
      http_client.receive_timeout = 60 * 120

      open(dest_file, 'wb') do |file|
        
         http_client.get_content(URI.parse(URI.encode(url)), query, auth_header) do |chunk|
           file.write chunk
         end

      end
      dest_file
    end
def get_object(token, url, dest_folder = nil)
      auth_header = {
          'X-Auth-Token' => token
      }
      query = nil
      dest_file = nil

      if dest_folder.nil?
        dest_file = File.join('./', File.basename(url))
      else
        dest_file = File.join(dest_folder, File.basename(url))
      end

      http_client = HTTPClient.new
      http_client.receive_timeout = 60 * 120

      open(dest_file, 'wb') do |file|
        
         http_client.get_content(URI.parse(URI.encode(url)), query, auth_header) do |chunk|
           file.write chunk
         end

      end
      dest_file
    end
TODO folder all save