Help us shape the future of Go! Take the 2026 Go Developer Survey

smstwilio

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 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 Sender

type Sender struct {
	AccountSID          string
	AuthToken           string
	MessagingServiceSID string
	AppName             string
	Client              *http.Client

	VerificationLinkURL func(token string) string
	ResetLinkURL        func(token string) string
}

Sender sends SMS messages via Twilio Messaging API.

func New

func New(accountSID, authToken, messagingServiceSID, appName string) *Sender

New creates a Twilio Messaging sender.

func (*Sender) SendLoginCode

func (s *Sender) SendLoginCode(ctx context.Context, phone, code string) error
func (s *Sender) SendPasswordResetLink(ctx context.Context, phone, token string) error

func (*Sender) SendVerification added in v0.5.0

func (s *Sender) SendVerification(ctx context.Context, phone string, msg core.VerificationMessage) error

Jump to

Keyboard shortcuts

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