Golang API wrapper for Twilio API [WIP]
go get github.com/genesor/twiliolo
package main
import (
"fmt"
"net/http"
"github.com/genesor/twiliolo"
)
func main() {
client := twiliolo.NewClient("ACCOUNT_SID", "AUTH_TOKEN", &http.Client{})
number, err := client.IncomingPhoneNumber.Get("NUMBER_SID")
if err != nil {
fmt.Println(err)
} else {
fmt.Println(number.FriendlyName)
}
}