【发布时间】:2017-02-23 12:50:35
【问题描述】:
当用户使用操作 sdk 提供一些原始输入时,我试图调用一个 http post api,但我收到错误“操作现在没有响应。请稍后再试”,我的代码如下
if (assistant.getRawInput() == 'test') {
request({
url: url,
json: true
}, function (error, response, body) {
if (error) {
assistant.tell('There is some error!');
}
else {
assistant.tell('we got the response!');
}
}
)
代码没有问题,因为它可以单独使用节点命令完全正常,我是谷歌操作的新手,请协助
【问题讨论】:
标签: actions-on-google google-home