twilio

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusAccepted ...
	StatusAccepted = "accepted"
	// StatusQueued ...
	StatusQueued = "queued"
	// StatusSending ...
	StatusSending = "sending"
	// StatusReceiving ...
	StatusReceiving = "receiving"
	// StatusReceived ...
	StatusReceived = "received"
	// StatusDelivered ...
	StatusDelivered = "delivered"
	// StatusUndelivered ...
	StatusUndelivered = "undelivered"
	// StatusSent ...
	StatusSent = "sent"
	// StatusFailed ...
	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"`
}

Balance ...

type TWClient

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

TWClient ...

func NewTWClient

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

NewTWClient ...

func (*TWClient) Balance

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

Balance ...

func (*TWClient) GetStatus

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

GetStatus ...

func (*TWClient) SendSMS

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

SendSMS ...

type TWConfig

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

TWConfig ...

func NewTWConfig

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

NewTWConfig ...

Jump to

Keyboard shortcuts

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