diff options
| author | 2023-05-04 06:38:24 +0200 | |
|---|---|---|
| committer | 2023-05-04 06:38:24 +0200 | |
| commit | dd290c8e226c7d78dc74695d26e28ec8bf4eab26 (patch) | |
| tree | ca33350242e40e143f576c044b341a6394deafb4 | |
| parent | Avoid crash in optional mastoapi argument. (diff) | |
| download | snac2-dd290c8e226c7d78dc74695d26e28ec8bf4eab26.tar.gz snac2-dd290c8e226c7d78dc74695d26e28ec8bf4eab26.tar.xz snac2-dd290c8e226c7d78dc74695d26e28ec8bf4eab26.zip | |
Updated documentation.
| -rw-r--r-- | doc/snac.1 | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -234,6 +234,17 @@ or similar. Take note that you need a) command-line access to the same machine | |||
| 234 | that hosts the | 234 | that hosts the |
| 235 | .Nm | 235 | .Nm |
| 236 | instance, and b) write permissions to the storage directories and files. | 236 | instance, and b) write permissions to the storage directories and files. |
| 237 | .Pp | ||
| 238 | You can also post non-interactively using the Mastodon API and a command-line | ||
| 239 | http tool like | ||
| 240 | .Xr curl 1 | ||
| 241 | or similar. This has the advantage that you can do it remotely from any host, | ||
| 242 | anywhere; the only thing you need is an API Token. This is an example: | ||
| 243 | .Bd -literal -offset indent | ||
| 244 | curl -X POST https://snac.example.com/api/v1/statuses \ | ||
| 245 | --header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)" | ||
| 246 | .Ed | ||
| 247 | .Pp | ||
| 237 | .Sh ENVIRONMENT | 248 | .Sh ENVIRONMENT |
| 238 | .Bl -tag -width Ds | 249 | .Bl -tag -width Ds |
| 239 | .It Ev DEBUG | 250 | .It Ev DEBUG |