twilio/create_call
Initiate an outbound call with TwiML URL instructions
const app = mvfm(prelude, console_, twilio_({ accountSid: "AC123", authToken: "secret" }));
const prog = app({}, ($) => {
const call = $.twilio.calls.create({
to: "+15551234567",
from: "+15557654321",
url: "https://example.com/twiml/hello",
});
return $.console.log(call);
});
await fold(defaults(app, { twilio: crystalBallTwilioInterpreter }), prog); Ctrl+Enter