messagebird

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusDelivered = "delivered"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MBClient

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

func NewMBClient

func NewMBClient(cfg *MBClientConfig) (*MBClient, error)

func (*MBClient) Balance

func (c *MBClient) Balance() (*balance.Balance, error)

func (*MBClient) GetStatus

func (c *MBClient) GetStatus(smsId string) (string, error)

func (*MBClient) SendSMS

func (c *MBClient) SendSMS(phone, body string) (string, error)

type MBClientConfig

type MBClientConfig struct {
	AccessKey  string
	Name       string
	CanSendSms bool
}

func NewMBClientConfig

func NewMBClientConfig(accessKey, name string) *MBClientConfig

Jump to

Keyboard shortcuts

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