Chime.Channels.Twilio (Chime v0.1.0-dev)

Copy Markdown View Source

SMS by Twilio: a text to the person's phone.

channels: [
  sms:
    {Chime.Channels.Twilio,
     account_sid: System.fetch_env!("TWILIO_ACCOUNT_SID"),
     auth_token: System.fetch_env!("TWILIO_AUTH_TOKEN"),
     from: "+15551234567"}
]

The phone is the recipient's data (data.phone, or to: {:data, :mobile}), in E.164 ("+351912345678"). :messaging_service_sid sends from a Messaging Service instead of :from. It says the notifier's function of the channel's name (sms/3, a text) when it has one, else the feed's title and the link that reads the notification. A number Twilio refuses for good (not a mobile, or the person replied STOP) is skipped, with its reason. Options: :account_sid, :auth_token, :from, :messaging_service_sid, :to, :req_options.