mastodon client for golang
 
 
Go to file
Yasuhiro Matsumoto bd23c855dd make API wrapper 2017-04-14 12:12:09 +09:00
cmd/mstdn Merge pull request #3 from zetamatta/master 2017-04-14 11:50:28 +09:00
README.md add README.md 2017-04-13 16:48:45 +09:00
mastodon.go make API wrapper 2017-04-14 12:12:09 +09:00

README.md

go-mastodon

EXPERIMENTAL

Usage

c := mastodon.NewClient(&mastodon.Config{
	Server:       "https://mstdn.jp",
	ClientID:     "client-id",
	ClientSecret: "client-secret",
})
err := c.Authenticate("your-username", "your-password")
if err != nil {
	log.Fatal(err)
}
timeline, err := c.GetTimeline("/api/v1/timelines/home")
if err != nil {
	log.Fatal(err)
}

Installation

$ go get github.com/mattn/go-mastodon

License

MIT

Author

Yasuhiro Matsumoto (a.k.a. mattn)