升级到我们的 Diamond 服务我们将建立你自己的应用程序安卓或iOS
Self, AIML, and scripting : How to call plain text with a json request

RE: How to call plain text with a json request

通过 admin 发布 Feb 28 2017, 20:11

I think the code you want is something like:

// Returns WordPress posts. state TeachEnglish { pattern "^ [verbo pronome pronomes] (to) *" answer Teaching(); function Teaching() { var text = Http.requestJSON("https://teacherbot.000webhostapp.com/wp-json/wp/v2/pages?slug=" + Http.encode(star[1])); text = json[0].content.rendered; text = text.replace("<p>", ""); text = text.replace("<\/p>", ""); text = text.replace("\n", ""); text = text.trim(); return text; } }


Id: 15620679
发布: Feb 28 2017, 20:11
答复: 0
的风景: 1861, 今天: 1, 周: 5, 一个月: 20
0 0 0.0/5