【发布时间】:2017-12-28 08:43:05
【问题描述】:
我要为 Twilio 中的来电开发一个 webhook:
app.post('/voice', (req, res) => {
const twiml = new VoiceResponse();
const caller = ...;
twiml.say('hello, your number is ' + caller);
res.type('text/xml');
res.send(twiml.toString());
});
如何从请求 (req) 中获取来电者电话号码?我不需要名字,只需要号码。
我在文档中找不到调用 webhook 时 POST 正文中发送的内容。
【问题讨论】:
标签: node.js twilio twilio-api