mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-25 14:35:04 +00:00
Updated documentation.
This commit is contained in:
parent
212d1350fe
commit
cd71bd08bf
1 changed files with 6 additions and 2 deletions
|
@ -241,11 +241,15 @@ http tool like
|
||||||
or similar. This has the advantage that you can do it remotely from any host,
|
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:
|
anywhere; the only thing you need is an API Token. This is an example:
|
||||||
.Bd -literal -offset indent
|
.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)"
|
--header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)"
|
||||||
.Ed
|
.Ed
|
||||||
.Pp
|
.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
|
.Sh ENVIRONMENT
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width Ds
|
||||||
.It Ev DEBUG
|
.It Ev DEBUG
|
||||||
|
|
Loading…
Reference in a new issue