Tag: chatfuel

这个NodeJS API是否正确完成? – Chatfuel不会按照预期parsing它

Chatfuel不parsingJSON-API返回的整个jsonstring。 任何帮助是受欢迎的。 虽然从API返回的JSON看起来像这样(在邮递员): { "messages": [ { "text": "i think you should study" }, { "text": "Mikrobiologi" } ] } 信使机器人只发送第一个文本。 我的应用程序代码: router.get('/ask/:question', function(req, res){ var output = []; var keywords = req.params.question.split(' '); var answer = qHandler.search(keywords); answer.then(function(books){ output.push({text: 'i think you should study'}) for (var i = books.length; i > 0; i–){ output.push({text: […]