twilio

package module
v0.0.0-...-11454e0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: MIT Imports: 14 Imported by: 0

README

Twilio

Note: This is not yet finished or ready for use.

Documentation

Overview

Package twilio implements the github.com/itsabot/abot/interface/sms/driver interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Phone

type Phone string

func (Phone) Valid

func (p Phone) Valid() (valid bool, err error)

Valid determines the validity of a phone number according to Twilio's expectations for the number's formatting. If valid, error will be nil. If invalid, the returned error will contain the reason.

type TwilioResp

type TwilioResp struct {
	XMLName xml.Name `xml:"Response"`
	Message string
}

TwilioResp is a valid XML Twilio struct that contains an SMS response to be sent back to the user.

Jump to

Keyboard shortcuts

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