Documentation ¶
Overview ¶
Package twilio exposes Twilio's REST API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(configuration ConfigOption) auth.SMSer
NewClient returns a Twilio client.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds configuration options for Twilio.
type ConfigOption ¶
type ConfigOption func(*client)
ConfigOption configures the service.
func WithConfig ¶
func WithConfig(config Config) ConfigOption
WithConfig configures the service with a Config.
func WithDefaults ¶
func WithDefaults(accountSID, authToken, smsSender string) ConfigOption
WithDefaults configures a Twilio client with a user's account SID and authentication token and configures all other values to default.
Click to show internal directories.
Click to hide internal directories.