// Download the helper library from https://www.twilio.com/docs/node/install
// Set environment variables for your credentials
// Read more at http://twil.io/secure
const twilio = require('twilio');
const accountSid = "AC3f103245ac932259846446efacb7e564";
const authToken = "c4f07810cdbfde75909e3f4a64e16f2c";
const client = require("twilio")(accountSid, authToken);
/*client.messages
.create({body: 'Hi there', from: '+19284380637', to: '+917028236913'})
.then(message => console.log(message.sid));
*/
client.calls.create({
twiml: '<Response><Say>Roses are red, violets are blue,I was born smart and handsome, But what the hell happened to you</Say></Response>',
to: "+917028236913",
from: "+918237173436",
})
.then(call => console.log(call.sid));
//19284380637
// 918237173436
//educational perpose only