notification

package
v0.0.0-...-e4e5e88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2019 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL