https://github.com/genesor/twiliolo
Golang API wrapper for Twilio API [WIP]
https://github.com/genesor/twiliolo
go golang twilio twilio-api twilio-go
Last synced: about 1 year ago
JSON representation
Golang API wrapper for Twilio API [WIP]
- Host: GitHub
- URL: https://github.com/genesor/twiliolo
- Owner: genesor
- License: mit
- Created: 2017-03-16T15:26:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T10:35:33.000Z (about 9 years ago)
- Last Synced: 2025-04-15T00:45:54.983Z (about 1 year ago)
- Topics: go, golang, twilio, twilio-api, twilio-go
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 25
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Twiliolo
Golang API wrapper for Twilio API [WIP]
[](https://travis-ci.org/genesor/twiliolo)
[](https://goreportcard.com/report/github.com/genesor/twiliolo)
[](https://godoc.org/github.com/genesor/twiliolo)
# Installation
``` bash
go get github.com/genesor/twiliolo
```
# Documentation
[GoDoc](http://godoc.org/github.com/genesor/twiliolo)
# Usage
## Get an Incoming phone number with its Sid
``` go
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)
}
}
```