This is the start of a library for Twilio. It currently only supports sending text messages at the moment. As time permits I'll work on adding more features.
Gotwilio is licensed under a BSD license.
To install gotwilio, simply run go get github.com/sfreiberg/gotwilio
.
package main
import (
"github.com/sfreiberg/gotwilio"
)
func main() {
accountSid := "ABC123..........ABC123"
authToken := "ABC123..........ABC123"
twilio := gotwilio.NewTwilioClient(accountSid, authToken)
from := "+15555555555"
to := "+15555555555"
message := "Welcome to gotwilio!"
twilio.SendTextMessage(from, to, message)
}