mastodon client for golang
 
 
Go to file
Yasuhiro Matsumoto b42014511b rename Follow to FollowRemoteUser 2017-04-15 00:31:21 +09:00
cmd/mstdn add README.md 2017-04-14 20:18:33 +09:00
.gitignore add .gitignore 2017-04-14 23:47:04 +09:00
.travis.yml add .travis.yml 2017-04-14 17:14:55 +09:00
LICENSE add LICENSE 2017-04-14 19:22:24 +09:00
README.md fix badge 2017-04-14 17:50:12 +09:00
accounts.go rename Follow to FollowRemoteUser 2017-04-15 00:31:21 +09:00
apps.go Fix POST to http.MethodPost 2017-04-14 23:59:11 +09:00
instance.go add instance 2017-04-15 00:00:17 +09:00
mastodon.go add GetStatus, GetStatusContext 2017-04-15 00:22:44 +09:00
mastodon_test.go Fix POST to http.MethodPost 2017-04-14 23:59:11 +09:00
notification.go add notifications 2017-04-15 00:16:48 +09:00
status.go add GetStatusCard 2017-04-15 00:25:35 +09:00
streaming.go Fix GET to http.MethodGet 2017-04-14 23:56:07 +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)