Documentation ¶
Index ¶
Constants ¶
View Source
const ServiceName = "twilio"
Variables ¶
This section is empty.
Functions ¶
func NewSMSDeliveryService ¶
func NewSMSDeliveryService(config interface{}) pnv10n.SMSDeliveryService
Types ¶
type Config ¶
type Config struct { AccountSID string `env:"ACCOUNT_SID,required"` AuthToken string `env:"AUTH_TOKEN,required"` Sender string `env:"NUMBER,required"` }
func ConfigSkeleton ¶
func ConfigSkeleton() Config
type SMSDeliveryService ¶
type SMSDeliveryService struct {
// contains filtered or unexported fields
}
func (*SMSDeliveryService) SendTextMessage ¶
func (sms *SMSDeliveryService) SendTextMessage(recipient, text string) error
SendTextMessage is use for send text message using sms delivery service
Click to show internal directories.
Click to hide internal directories.