lib/twilio.js
function TwilioConnector(settings) {

    assert(typeof settings === 'object', 'cannot initialize TwilioConnector without a settings object');
    var connector = this;

    var accountSid = this.accountSid = settings.accountSid;
    var authToken = this.authToken = settings.authToken;
    var sgAPIKey = this.sgAPIKey = settings.sgAPIKey;

    twilio = connector.twilio = require('twilio')(accountSid, authToken);
    sgMail = connector.sgMail = require('@sendgrid/mail');
    sgMail.setApiKey(sgAPIKey);
}
function TwilioConnector(settings) {

    assert(typeof settings === 'object', 'cannot initialize TwilioConnector without a settings object');
    var connector = this;

    var accountSid = this.accountSid = settings.accountSid;
    var authToken = this.authToken = settings.authToken;
    var sgAPIKey = this.sgAPIKey = settings.sgAPIKey;

    twilio = connector.twilio = require('twilio')(accountSid, authToken);
    sgMail = connector.sgMail = require('@sendgrid/mail');
    sgMail.setApiKey(sgAPIKey);
}
function TwilioConnector ( settings ) { assert ( typeof settings === 'object' , 'cannot initialize TwilioConnector without a settings object' ) ; var connector = this ; var accountSid = this . accountSid = settings . accountSid ; var authToken = this . authToken = settings . authToken ; var sgAPIKey = this . sgAPIKey = settings . sgAPIKey ; twilio = connector . twilio = require ( 'twilio' ) ( accountSid , authToken ) ; sgMail = connector . sgMail = require ( '@sendgrid/mail' ) ; sgMail . setApiKey ( sgAPIKey ) ; }
Create an instance of the connector with the given `settings`.
Create an instance of the connector with the given settings .