textbelt: github.com/dietsche/textbelt Index | Files

package textbelt

import "github.com/dietsche/textbelt"

Index

Package Files

textbelt.go

Constants

const (
    // TextbeltAPIusa is used to send text messages in the USA
    TextbeltAPIusa = "http://textbelt.com/text"

    // TextbeltAPIcanada is used to send text messages in Canada
    TextbeltAPIcanada = "http://textbelt.com/canada"

    // TextbeltAPIinternational is used to send international text messages
    TextbeltAPIinternational = "http://textbelt.com/intl"
)

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

Client is your entry point into the rest of the library.

func New Uses

func New() *Client

New creates a new client that will use the USA version of http://textbelt.com to send text messages.

func NewClientFromURL Uses

func NewClientFromURL(apiURL string) *Client

NewClientFromURL creates a new client using a url of your choosing.

func (*Client) Text Uses

func (c *Client) Text(phoneNumber string, message string) error

Text sends a text message.

Package textbelt imports 5 packages (graph). Updated 2018-02-15. Refresh now. Tools for package owners.