コード例 #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");
 }
コード例 #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);
 }
コード例 #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();
 }
コード例 #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);
 }