utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Base_Url = "https://api.twilio.com/2010-04-01/Accounts"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LookupAddons

type LookupAddons struct {
	Addon string
}

type ServiceOpts

type ServiceOpts struct {
	//The length of the verification code to generate. Must be an integer value between 4 and 10, inclusive.
	CodeLength string
	//Whether to perform a lookup with each verification started and return info about the phone number.
	LookupEnabled bool
	//Whether to pass PSD2 transaction parameters when starting a verification.
	Psd2Enabled bool
	//Whether to add a security warning at the end of an SMS verification body. Disabled by default and applies only to SMS
	DoNotShareWarningEnabled bool
	//Whether to allow sending verifications with a custom code instead of a randomly generated one. Not available for all customers.
	CustomCodeEnabled bool
}

VerOpts are the options that can be passed when creating new Verify Service

type SmsOpts

type SmsOpts struct {
	StatusCallback  string
	ProvideFeedback bool
	ValidityPeriod  string
}

SmsOpts are the options that can be passed to the NewOutgoingMessage function call when creating new SMS message

Jump to

Keyboard shortcuts

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