sms

package
v0.0.0-...-795d1ad Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SendRequest

type SendRequest struct {
	// who is the message from? The message will be suffixed with "Sent from <from>"
	From string `json:"from"`
	// the main body of the message to send
	Message string `json:"message"`
	// the destination phone number including the international dialling code (e.g. +44)
	To string `json:"to"`
}

type SendResponse

type SendResponse struct {
	// any additional info
	Info string `json:"info"`
	// will return "ok" if successful
	Status string `json:"status"`
}

type SmsService

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

func NewSmsService

func NewSmsService(token string) *SmsService

func (*SmsService) Send

func (t *SmsService) Send(request *SendRequest) (*SendResponse, error)

Send an SMS.

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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