rickyrobinett / twilio-go

Twilio Go library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

twilio-go

Usage

const sid = "AC123"
const token = "456bef"

client := twilio.CreateClient(sid, token, nil)
msg, err := client.Messages.SendMessage("+19177460767", "+19253240627", "Sent via go :) ✓", nil)

Or pass the values yourself:

params := url.Values{
    "From": {"+19177460767"},
    "To":   {"+19253240627"},
    "Body": {"Sent via go :) ✓"},
}
msg, err := client.Messages.Create(params)

About

Twilio Go library