diff options
| author | 2023-05-04 06:40:51 +0200 | |
|---|---|---|
| committer | 2023-05-04 06:40:51 +0200 | |
| commit | d46bf8837c1c6654868170a293352d12f6d84962 (patch) | |
| tree | fbda3c0795d2fa4f00609541db3479a3e012d197 | |
| parent | Updated documentation. (diff) | |
| download | snac2-d46bf8837c1c6654868170a293352d12f6d84962.tar.gz snac2-d46bf8837c1c6654868170a293352d12f6d84962.tar.xz snac2-d46bf8837c1c6654868170a293352d12f6d84962.zip | |
Updated documentation.
| -rw-r--r-- | doc/snac.1 | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -241,10 +241,11 @@ 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.example.com/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 | .Sh ENVIRONMENT | 249 | .Sh ENVIRONMENT |
| 249 | .Bl -tag -width Ds | 250 | .Bl -tag -width Ds |
| 250 | .It Ev DEBUG | 251 | .It Ev DEBUG |