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 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.
Click to show internal directories.
Click to hide internal directories.