Versions in this module Expand all Collapse all v1 v1.0.0 Oct 8, 2018 Changes in this version + const TwilioAuthToken + const TwilioPhoneNumber + const TwilioSID + type Client struct + AuthToken string + PhoneNumber string + SID string + Timeout time.Duration + func NewClient(sid, authToken, phoneNumber string) *Client + func (c Client) SendSMS(to string, msg string) (twilioResponse Response, err error) + type Request struct + AccountSID string + Body string + From string + FromCity string + FromCountry string + FromState string + FromZip int + MessageSID string + NumMedia int + NumSegments int + SMSMessageSID string + SMSSid string + SMSStatus string + To string + ToCity string + ToCountry string + ToZip string + func NewDecoder(r *http.Request) (*Request, error) + func (r *Request) Decode(queryParams []byte) error + type Response struct + APIVersion string + AccountSID string + Body string + Code int + Created *time.Time + DateCreated string + DateSent string + DateUpdated string + Direction string + Error bool + ErrorCode string + ErrorMesssage string + From string + HTTPStatusCode int + Message string + MessageStatus string + MessagingServiceSID string + MoreInfo string + NumMedia string + NumSegments string + Price string + PriceUnit string + SID string + Sent *time.Time + Status interface{} + SubResourceURIs map[string]string + To string + URI string + Updated *time.Time + func SendSMS(to string, msg string) (Response, error) + func (r *Response) UnmarshalJSON(b []byte) (err error) + func (r Response) CheckError() error