大家好,我是新手,需要帮助。我想做的是这样:
如果您能指出正确的方向,我将不胜感激!
这是我到目前为止所拥有的
"use strict";
const twilio = require('twilio');
const client = new twilio();
client.calls.create({
url: 'http://something.ngrok.io/voice',
to: '+1',
from: '+1',
statusCallback: 'http://something.grok.io/events',
statusCallbackMethod: 'POST',
statusCallbackEvent: ['initiated', 'ringing', 'answered', 'completed'],
}, (err, call) => {
if(err) { console.log(err); return err; }
process.stdout.write(call.sid);
});