Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TwilioHandler ¶
type TwilioHandler struct { AccountSID string `json:"TWILIO_ACCOUNT_SID"` AuthToken string `json:"TWILIO_AUTH_TOKEN"` TwilioNumber string `json:"TWILIO_NUMBER"` TargetNumber string `json:"TWILIO_TARGET"` Client *gotwilio.Twilio }
TwilioHandler encapsulates credentials and methods for using Twilio's API
func (*TwilioHandler) Authenticate ¶
func (t *TwilioHandler) Authenticate() error
Authenticate authenticates the struct with a Twilio client
func (*TwilioHandler) GetCredentials ¶
func (t *TwilioHandler) GetCredentials(db *database.DynamoConn) error
GetCredentials instantiates the struct with credentials from DynamoDB
func (*TwilioHandler) SendSMS ¶
func (t *TwilioHandler) SendSMS(phoneNumber string, message string) error
SendSMS provides EmergenSeek with SMS notification functionality
func (*TwilioHandler) SendVoiceCall ¶
func (t *TwilioHandler) SendVoiceCall(phoneNumber string, callbackURL string) error
SendVoiceCall provides EmergenSeek with voice call functionality
Click to show internal directories.
Click to hide internal directories.