mastodon client for golang
 
 
Go to file
Yasuhiro Matsumoto f765667837 add test 2017-04-14 17:47:15 +09:00
cmd/mstdn Merge pull request #4 from zetamatta/master 2017-04-14 16:17:38 +09:00
.travis.yml add .travis.yml 2017-04-14 17:14:55 +09:00
README.md add badges 2017-04-14 17:15:42 +09:00
mastodon.go Merge pull request #6 from 178inaba/following 2017-04-14 17:42:11 +09:00
mastodon_test.go add test 2017-04-14 17:47:15 +09:00

README.md

go-mastodon

Build Status Coverage Status GoDoc Go Report Card

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)