# File lib/bigbluebutton.rb, line 120 def send_api_request(method, data = {}) url = get_url(method, data) res = Net::HTTP.get_response(URI.parse(url)) puts "BigBlueButtonAPI: URL=#{url}" if @debug puts "BigBlueButtonAPI: URL response=#{res.body}" if @debug doc = REXML::Document.new(res.body) return_code = doc.root.get_text('/response/returncode') message = doc.root.get_text('/response/message') unless return_code == "SUCCESS" raise BigBlueButtonException.new("BigBlueButton error: #{message}") end doc end