sms

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeResponseHandler

func MakeResponseHandler(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)

MakeResponseHandler generates an http handler that sends responses to sms messages as they come in

func SendText

func SendText(msg, sid, token, to, from string) int

SendText sends an sms message to the specified number

Types

type Response

type Response struct {
	Message []string `xml:Message>Body`
}

Response is a Twilio sms response to be sent as xml It can contain any number of text Messages

Jump to

Keyboard shortcuts

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