summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 06:38:24 +0200
committerdefault <nobody@localhost>2023-05-04 06:38:24 +0200
commitdd290c8e226c7d78dc74695d26e28ec8bf4eab26 (patch)
treeca33350242e40e143f576c044b341a6394deafb4 /doc
parenta9f0f2f695d653a2ca58057837fae6b8bc4dc13f (diff)
Updated documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/snac.111
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/snac.1 b/doc/snac.1
index 91d7e85..c52eba9 100644
--- a/doc/snac.1
+++ b/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
.Nm
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
.Bl -tag -width Ds
.It Ev DEBUG