github.com/rikonor/earmouthbrain-twilio

EarMouthBrain - Send SMS messages using Twilio API


License
MIT
Install
go get github.com/rikonor/earmouthbrain-twilio

Documentation

EarMouthBrain - Twilio

TwilioSMSMouth

Use to send SMS messages:

twilioSMSConfig := TwilioSMSConfig{
  FromNumber: "+12345678900",
  AccountSID: "AccountSID",
  AuthToken:  "AuthToken",
}

phoneNumbers := []string{
  "(123) 456-7890",
}

sm := NewTwilioSMSMouth(twilioSMSConfig, phoneNumbers...)

msg := emb.StringToMessage("Test")
sm.Say(msg)