textbelt.com API for GO

GoDoc Code Coverage Build Status

This library sends text messages to mobile phones using http://textbelt.com

Installing

go get

$ go get gopkg.in/dietsche/textbelt.v1

Example Code

package main

import (
    "gopkg.in/dietsche/textbelt.v1"
)

func main() {
    texter := textbelt.New()
    phoneToText := "123-456-7890"
    if err := texter.Text(phoneToText, "txt msg from go!"); err != nil {
        panic(err)
    }
}

GitHub

https://github.com/dietsche/textbelt