https://github.com/willis7/twilio-client
A lightweight Go based Twilio client for sending SMS
https://github.com/willis7/twilio-client
Last synced: 11 months ago
JSON representation
A lightweight Go based Twilio client for sending SMS
- Host: GitHub
- URL: https://github.com/willis7/twilio-client
- Owner: willis7
- Created: 2018-03-12T10:38:18.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T10:38:30.000Z (over 8 years ago)
- Last Synced: 2025-07-28T20:05:17.306Z (11 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twilio SMS client
A lightweight Go library for sending SMS with Twilio.
## Usage
``` go
baseURL := "https://api.twilio.com/2010-04-01"
accountSid := "AC00xxxxxxxx"
authToken := "2a7bxxxxxxxxx"
twilio := NewTwilioClient(baseURL, accountSid, authToken)
msgData := url.Values{}
msgData.Set("To", "+44XXXXXXXXXX")
msgData.Set("From", "+44XXXXXXXXXX")
msgData.Set("Body", "Hello World")
twilio.SendMessage(msgData)
```
## Credit
* [So It Goes: Sending SMS with Golang](https://www.twilio.com/blog/2017/09/send-text-messages-golang.html)
* [sfreiberg/gotwilio](https://github.com/sfreiberg/gotwilio)