Ejemplo n.º 1
0
 public void getMeaning(string sentence, Action <object, string, JqXHR> success, Action <JqXHR, string, string> error)
 {
     JQuery.Ajax(
         new AjaxSettings()
     {
         Url         = "https://api.wit.ai/message?q=" + sentence,
         BeforeSend  = (jqxhr, s) => jqxhr.SetRequestHeader("Authorization", authValue),
         Type        = RequestType.GET,
         ContentType = "application/json",
         DataType    = DataType.Json,
         Success     = success,
         Error       = error
     });
 }