Skip to content

genesor/twiliolo

Repository files navigation

Twiliolo

Golang API wrapper for Twilio API [WIP]

Build Status Go Report Card GoDoc

Installation

go get github.com/genesor/twiliolo

Documentation

GoDoc

Usage

Get an Incoming phone number with its Sid

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

Releases

No releases published

Packages

No packages published

Languages