twilio

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusAccepted    = "accepted"
	StatusQueued      = "queued"
	StatusSending     = "sending"
	StatusReceiving   = "receiving"
	StatusReceived    = "received"
	StatusDelivered   = "delivered"
	StatusUndelivered = "undelivered"
	StatusSent        = "sent"
	StatusFailed      = "failed"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Balance

type Balance struct {
	Currency   string `json:"currency"`
	Balance    string `json:"balance"`
	AccountSid string `json:"account_sid"`
}

type TWClient

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

func NewTWClient

func NewTWClient(cfg *TWConfig) (*TWClient, error)

func (*TWClient) Balance

func (t *TWClient) Balance() (float32, error)

func (*TWClient) GetStatus

func (t *TWClient) GetStatus(smsId string) (string, error)

func (*TWClient) SendSMS

func (t *TWClient) SendSMS(phone, body string) (string, error)

type TWConfig

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

func NewTWConfig

func NewTWConfig(from, sid, authToken string) *TWConfig

Jump to

Keyboard shortcuts

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