Module: Docomoru::KnowledgeMethods

Included in:
Client
Defined in:
lib/docomoru/knowledge_methods.rb

Constant Summary collapse

PATH =
"/knowledgeQA/v1/ask"

Instance Method Summary collapse

Instance Method Details

#create_knowledge(message, params = {}, headers = {}) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/docomoru/knowledge_methods.rb', line 5

def create_knowledge(message, params = {}, headers = {})
  get(
    "#{PATH}?#{default_query_string}&q=#{CGI.escape(message)}",
    params,
    headers,
  )
end