Exemplo n.º 1
0
 public void Delete(Bot oBot)
 {
     Tools.HttpReturn ret = Tools.HttpRequest(oBot.uri + "/intents/" + id, "DELETE", null, 0, null, null, null, oBot.developer_token, "Token");
 }
Exemplo n.º 2
0
 public void Get(Bot oBot)
 {
     Tools.HttpReturn ret = Tools.HttpRequest(oBot.uri + "/intents/" + id, "GET", null, 0, null, null, null, oBot.developer_token, "Token");
     _json = ret._json.ToString();
     Load(ret._json);
 }
Exemplo n.º 3
0
 public void BulkCreateExpressions(Bot oBot)
 {
     Tools.HttpReturn ret = Tools.HttpRequest(oBot.uri + "/intents/" + id + "/expressions/bulk_create", "POST", Encoding.UTF8.GetBytes(GetJson(false).ToString()), 0, "application/json", null, null, oBot.developer_token, "Token");
     _json = ret._json.ToString();
 }
Exemplo n.º 4
0
 public void Converse(Bot oBot, string sText, string sConvToken = null)
 {
     Tools.HttpReturn ret = Tools.HttpRequest(oBot.user.url_recast + "/v2/converse", "POST", Encoding.UTF8.GetBytes(GetJson().ToString()), 0, "application/json", null, null, oBot.developer_token, "Token");
     _json = ret._json.ToString();
     Load(ret._json);
 }