def default_connection(url = BASE_URL, debug = false)
      Faraday.new(url: url) do |conn|
        conn.adapter :typhoeus
        conn.headers[:user_agent] = USER_AGENT
        conn.headers[:content_type] = 'application/json'
        configure_api_auth_header(conn.headers)
        configure_logger(conn) if debug
      end
    end
def default_connection(url = BASE_URL, debug = false)
      Faraday.new(url: url) do |conn|
        conn.adapter :typhoeus
        conn.headers[:user_agent] = USER_AGENT
        conn.headers[:content_type] = 'application/json'
        configure_api_auth_header(conn.headers)
        configure_logger(conn) if debug
      end
    end
Returns custom Typhoeus connection configuration
 @param url [String] API url to be used as base
 @param debug [Boolean] flag to log responses into STDOUT
 @return [Typhoeus::Connection] configured http client for requests to API