farmergreg / textbelt

golang library for textbelt.com

Home Page:https://www.gregd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

golang library for textbelt.com

https://www.gregd.org/

License:MIT License


Languages

Language:Go 100.0%