mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-10 03:50:38 +03:00
Updated documentation.
This commit is contained in:
parent
a9f0f2f695
commit
dd290c8e22
11
doc/snac.1
11
doc/snac.1
@ -234,6 +234,17 @@ or similar. Take note that you need a) command-line access to the same machine
|
|||||||
that hosts the
|
that hosts the
|
||||||
.Nm
|
.Nm
|
||||||
instance, and b) write permissions to the storage directories and files.
|
instance, and b) write permissions to the storage directories and files.
|
||||||
|
.Pp
|
||||||
|
You can also post non-interactively using the Mastodon API and a command-line
|
||||||
|
http tool like
|
||||||
|
.Xr curl 1
|
||||||
|
or similar. This has the advantage that you can do it remotely from any host,
|
||||||
|
anywhere; the only thing you need is an API Token. This is an example:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
curl -X POST https://snac.example.com/api/v1/statuses \
|
||||||
|
--header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
|
||||||
|
.Ed
|
||||||
|
.Pp
|
||||||
.Sh ENVIRONMENT
|
.Sh ENVIRONMENT
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Ev DEBUG
|
.It Ev DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user