twilio

package
v0.0.0-...-6e9cc21 Latest Latest
Warning

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

Go to latest
Published: May 6, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMSService

type SMSService struct {
	// API settings.
	AccountSID string
	AuthToken  string

	// Sender phone number.
	From string

	LogOutput io.Writer
}

SMSService represents a service for sending SMS text messages over Twilio.

func NewSMSService

func NewSMSService() *SMSService

NewSMSService returns a new instance of SMSService.

func (*SMSService) SendSMS

func (s *SMSService) SendSMS(ctx context.Context, msg *peapod.SMS) error

SendSMS sends an SMS message.

Jump to

Keyboard shortcuts

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