Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/farmergreg/textbelt

golang library for textbelt.com
https://github.com/farmergreg/textbelt

Last synced: about 2 months ago
JSON representation

golang library for textbelt.com

Awesome Lists containing this project

README

        

textbelt.com API for GO
==================
[![GoDoc](https://godoc.org/github.com/dietsche/textbelt?status.png)](https://godoc.org/github.com/dietsche/textbelt) [![Code Coverage](http://gocover.io/_badge/github.com/dietsche/textbelt)](http://gocover.io/github.com/dietsche/textbelt) [![Build Status](https://travis-ci.org/dietsche/textbelt.svg)](https://travis-ci.org/dietsche/textbelt)

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)
}
}