commit dd290c8
default
·
2023-05-04 04:38:24 +0000 UTC
parent a9f0f2f
Updated documentation.
1 files changed,
+11,
-0
+11,
-0
1@@ -234,6 +234,17 @@ or similar. Take note that you need a) command-line access to the same machine
2 that hosts the
3 .Nm
4 instance, and b) write permissions to the storage directories and files.
5+.Pp
6+You can also post non-interactively using the Mastodon API and a command-line
7+http tool like
8+.Xr curl 1
9+or similar. This has the advantage that you can do it remotely from any host,
10+anywhere; the only thing you need is an API Token. This is an example:
11+.Bd -literal -offset indent
12+curl -X POST https://snac.example.com/api/v1/statuses \
13+--header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
14+.Ed
15+.Pp
16 .Sh ENVIRONMENT
17 .Bl -tag -width Ds
18 .It Ev DEBUG