Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 424 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 424 Bytes

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)