twilio

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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