1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
# madon
Golang library for the Mastodon API
[](https://godoc.org/github.com/McKael/madon)
[](https://raw.githubusercontent.com/McKael/madon/master/LICENSE)
[](https://goreportcard.com/report/github.com/McKael/madon)
`madon` is a [Go](https://golang.org/) library to access the Mastondon REST API.
This implementation covers 100% of the current API, including the streaming API.
The [madonctl](https://github.com/McKael/madonctl) console client uses this library exhaustively.
## Installation
To install the library (Go >= v1.5 required):
go get github.com/McKael/madon
For minimal compatibility with Go modules support (in Go v1.11), it is
recommended to use Go version 1.9+.
You can test it with my CLI tool:
go get github.com/McKael/madonctl
## Usage
This section has not been written yet (PR welcome).
For now please check [godoc](https://godoc.org/github.com/McKael/madon) and
check the [madonctl](https://github.com/McKael/madonctl) project
implementation.
## History
This API implementation was initially submitted as a PR for gondole.
The repository is actually a fork of my gondole branch so that
history and credits are preserved.
## References
- [madonctl](https://github.com/McKael/madonctl) (console client based on madon)
- [Mastodon API documentation](https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md)
- [Mastodon Streaming API documentation](https://github.com/tootsuite/documentation/blob/master/Using-the-API/Streaming-API.md)
- [Mastodon repository](https://github.com/tootsuite/mastodon)
|