diff options
| author | 2023-05-04 11:59:18 +0200 | |
|---|---|---|
| committer | 2023-05-04 11:59:18 +0200 | |
| commit | cd71bd08bffc58f01610f3c13ff00c7ec214fd6a (patch) | |
| tree | 7d068c1572066c9e2b02a01a1d6bb699b6b0cbc3 /doc/snac.1 | |
| parent | Fixed mastoapi debug levels. (diff) | |
| download | penes-snac2-cd71bd08bffc58f01610f3c13ff00c7ec214fd6a.tar.gz penes-snac2-cd71bd08bffc58f01610f3c13ff00c7ec214fd6a.tar.xz penes-snac2-cd71bd08bffc58f01610f3c13ff00c7ec214fd6a.zip | |
Updated documentation.
Diffstat (limited to 'doc/snac.1')
| -rw-r--r-- | doc/snac.1 | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -241,11 +241,15 @@ http tool like | |||
| 241 | or similar. This has the advantage that you can do it remotely from any host, | 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: | 242 | anywhere; the only thing you need is an API Token. This is an example: |
| 243 | .Bd -literal -offset indent | 243 | .Bd -literal -offset indent |
| 244 | curl -X POST https://snac.example.com/api/v1/statuses \\ | 244 | curl -X POST https://$SNAC_HOST/api/v1/statuses \\ |
| 245 | --header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)" | 245 | --header "Authorization: Bearer ${TOKEN}" -d "status=$(uptime)" |
| 246 | .Ed | 246 | .Ed |
| 247 | .Pp | 247 | .Pp |
| 248 | You can obtain an API Token from a mobile app. | 248 | You can obtain an API Token by connecting to the following URL: |
| 249 | .Bd -literal -offset indent | ||
| 250 | https://$SNAC_HOST/oauth/x-snac-get-token | ||
| 251 | .Ed | ||
| 252 | .Pp | ||
| 249 | .Sh ENVIRONMENT | 253 | .Sh ENVIRONMENT |
| 250 | .Bl -tag -width Ds | 254 | .Bl -tag -width Ds |
| 251 | .It Ev DEBUG | 255 | .It Ev DEBUG |