Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/McKael/madon
Golang Mastodon API library
https://github.com/McKael/madon
api go godoc golang library mastodon mastodon-api
Last synced: 3 months ago
JSON representation
Golang Mastodon API library
- Host: GitHub
- URL: https://github.com/McKael/madon
- Owner: McKael
- License: mit
- Created: 2017-04-19T09:07:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-06-30T14:29:22.000Z (4 months ago)
- Last Synced: 2024-07-31T12:15:55.970Z (3 months ago)
- Topics: api, go, godoc, golang, library, mastodon, mastodon-api
- Language: Go
- Size: 1.2 MB
- Stars: 71
- Watchers: 6
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# madon
Golang library for the Mastodon API
[![godoc](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/McKael/madon)
[![license](https://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/McKael/madon/master/LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/McKael/madon)](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)