commit cd71bd0
default
·
2023-05-04 09:59:18 +0000 UTC
parent 212d135
Updated documentation.
1 files changed,
+6,
-2
+6,
-2
1@@ -241,11 +241,15 @@ http tool like
2 or similar. This has the advantage that you can do it remotely from any host,
3 anywhere; the only thing you need is an API Token. This is an example:
4 .Bd -literal -offset indent
5-curl -X POST https://snac.example.com/api/v1/statuses \\
6+curl -X POST https://$SNAC_HOST/api/v1/statuses \\
7 --header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
8 .Ed
9 .Pp
10-You can obtain an API Token from a mobile app.
11+You can obtain an API Token by connecting to the following URL:
12+.Bd -literal -offset indent
13+https://$SNAC_HOST/oauth/x-snac-get-token
14+.Ed
15+.Pp
16 .Sh ENVIRONMENT
17 .Bl -tag -width Ds
18 .It Ev DEBUG