2023-09-26 02:00:14 +00:00
|
|
|
# go-mstdn
|
|
|
|
|
|
|
|
Package **mstdn** provides tools for working with the **Mastodon API**, which is becoming the (defacto) stand client-server API for the **Fediverse**.
|
|
|
|
Note that the **Mastodon API** is not (yet) officially part of **ActivityPub**.
|
|
|
|
|
|
|
|
## Documention
|
|
|
|
|
2024-08-01 22:15:34 +00:00
|
|
|
Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-mstdn
|
2023-09-26 02:00:14 +00:00
|
|
|
|
2024-08-01 22:15:34 +00:00
|
|
|
[![GoDoc](https://godoc.org/github.com/reiver/go-mstdn?status.svg)](https://godoc.org/github.com/reiver/go-mstdn)
|
2023-09-26 19:35:39 +00:00
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
To import package **mstdn** use `import` code like the follownig:
|
|
|
|
```
|
2024-08-01 22:15:34 +00:00
|
|
|
import "github.com/reiver/go-mstdn"
|
2023-09-26 19:35:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To import the Mastodon API **entities** use `import` code like the following:
|
|
|
|
```
|
2024-08-01 22:15:34 +00:00
|
|
|
import "github.com/reiver/go-mstdn/ent"
|
2023-09-26 19:35:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
To import the Mastodon API **entities** for **administrators** use `import` code like the following:
|
|
|
|
```
|
2024-08-01 22:15:34 +00:00
|
|
|
import "github.com/reiver/go-mstdn/ent/admn"
|
2023-09-26 19:35:39 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
|
|
|
To install package **mstdn** do the following:
|
|
|
|
```
|
2024-08-01 22:15:34 +00:00
|
|
|
GOPROXY=direct go get https://github.com/reiver/go-mstdn
|
2023-09-26 19:35:39 +00:00
|
|
|
```
|
2023-09-26 19:36:38 +00:00
|
|
|
|
|
|
|
## Author
|
|
|
|
|
|
|
|
Package **mstdn** was written by [Charles Iliya Krempeaux](http://changelog.ca)
|