Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMS ¶
type SMS struct {
// contains filtered or unexported fields
}
SMS is the service object. No public data, only two public methods: `Send` and `Hook` for interacting with Twilio.
func Default ¶
Default gives an instance of the `SMS` service object. A slight abstraction over github.com/sfreiberg/gotwilio and a `Hook` for HTTP requests from Twilio themselves.
func (SMS) Hook ¶
Hook handles webhooks from Twilio. Used to receive text messages from users. Returns user phone number, user text, and potential error from reading and parsing payload from Twilio.
Click to show internal directories.
Click to hide internal directories.