def retrieve(url, method = :get, headers = {}, data = nil)
      puts "[ActiveHarmony] Retrieving data:"
      puts "[ActiveHarmony]    URL:      #{url}"
      puts "[ActiveHarmony]    Method:   #{method}"
      puts "[ActiveHarmony]    Headers:  #{headers.inspect}"
      puts "[ActiveHarmony]    Data:     #{data.inspect}" if data
      if defined?(Rails) && !Rails.env.test?
        data = retrieve_with_typhoeus(url, method, headers, data)
      else
        data = retrieve_with_http(url, method, headers, data)
      end
      data
    end
def retrieve(url, method = :get, headers = {}, data = nil)
      puts "[ActiveHarmony] Retrieving data:"
      puts "[ActiveHarmony]    URL:      #{url}"
      puts "[ActiveHarmony]    Method:   #{method}"
      puts "[ActiveHarmony]    Headers:  #{headers.inspect}"
      puts "[ActiveHarmony]    Data:     #{data.inspect}" if data
      if defined?(Rails) && !Rails.env.test?
        data = retrieve_with_typhoeus(url, method, headers, data)
      else
        data = retrieve_with_http(url, method, headers, data)
      end
      data
    end
Retrieving data from networks

 Retrieves data from URL
 @param [String] URL
 @return [String] Retrieved data from the URL