summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 11:59:18 +0200
committerdefault <nobody@localhost>2023-05-04 11:59:18 +0200
commitcd71bd08bffc58f01610f3c13ff00c7ec214fd6a (patch)
tree7d068c1572066c9e2b02a01a1d6bb699b6b0cbc3 /doc
parent212d1350fe261dbc04eb8cc9a9462c5ce5747597 (diff)
Updated documentation.
Diffstat (limited to 'doc')
-rw-r--r--doc/snac.18
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/snac.1 b/doc/snac.1
index 0d36f5d..ef84f3d 100644
--- a/doc/snac.1
+++ b/doc/snac.1
@@ -241,11 +241,15 @@ http tool like
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 \\
+curl -X POST https://$SNAC_HOST/api/v1/statuses \\
--header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
.Ed
.Pp
-You can obtain an API Token from a mobile app.
+You can obtain an API Token by connecting to the following URL:
+.Bd -literal -offset indent
+https://$SNAC_HOST/oauth/x-snac-get-token
+.Ed
+.Pp
.Sh ENVIRONMENT
.Bl -tag -width Ds
.It Ev DEBUG