def get_file(id, file)
        response = @client.get(url(id), {}, @headers) do |block|
          file.write(block)
        end