TwilioMessagingAdapter

TwilioMessagingAdapter

new TwilioMessagingAdapter(config, app, logger)

Parameters:
Name Type Description
config object Messaging config ({ type, account_sid, auth_token, from, whatsapp_from, messaging_service_sid, ... }).
app object Gingee app object.
logger object Winston-style logger.

Methods

(async) send(message) → {Promise.<object>}

Parameters:
Name Type Description
message object Normalized outbound message.
Returns:
Result with messageId, provider, status, etc.
Type
Promise.<object>