public void Delete(Bot oBot) { Tools.HttpReturn ret = Tools.HttpRequest(oBot.uri + "/intents/" + id, "DELETE", null, 0, null, null, null, oBot.developer_token, "Token"); }
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); }
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(); }
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); }