Package pinboard is a GO library, which uses the Pinboard API to interact programatically with your bookmarks, notes and other Pinboard data.
Note: This project is not affiliated with Pinboard.in in any way.
You will need to set up and configure the Go tool chain.
go get github.com/umahmood/pinboard
cd $GOPATH/src/github.com/umahmood/pinboard
go test ./...
import (
"fmt"
"github.com/umahmood/pinboard"
)
pin := pinboard.New()
token, err := pin.Auth("username:TOKEN")
if err := nil {
...
}
// get all tags in users account.
tags, err := pin.Tags()
if err := nil {
...
}
for _, t := range tags {
fmt.Println("Name:", t.Name, "# of tagged:", t.Count)
}
See the LICENSE file for license rights and limitations (MIT).