Simple Client Implementation of WebFinger
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
jrd
.gitignore
.travis.yml
LICENSE
README.md
client.go
client_test.go
webfist.go
webfist_test.go

README.md

Go-Webfinger

Go client for the Webfinger protocol

Build Status

Go-Webfinger is a Go client for the Webfinger protocol.

*It is a work in progress, the API is not frozen. We're trying to catchup with the last draft of the protocol: http://tools.ietf.org/html/draft-ietf-appsawg-webfinger-14 and to support the http://webfist.org *

Install

This package is "go-gettable", just do:

go get github.com/ant0ine/go-webfinger

Example

package main

import (
        "fmt"
        "github.com/ant0ine/go-webfinger"
        "os"
)

func main() {
        email := os.Args[1]

        client := webfinger.NewClient(nil)

        resource, err := webfinger.MakeResource(email)
        if err != nil {
                panic(err)
        }

        jrd, err := client.GetJRD(resource)
        if err != nil {
                fmt.Println(err)
                return
        }

        fmt.Printf("JRD: %+v", jrd)
}

Documentation

Author

Contributors

  • Thanks Will Norris for the major update to support draft-14, and the GAE compat!

MIT License

Analytics