fix(doc): README formatting

This commit is contained in:
Alexey Ryndin 2022-08-10 20:18:40 +03:00
parent 90946bacf0
commit 4d08c112da
1 changed files with 3 additions and 0 deletions

View File

@ -23,10 +23,12 @@ $ curl -X POST \
```
$ cat application.json
```
* Remember `client_id` value as `CLIENT_ID`
* Remember `client_secret` value as `CLIENT_SECRET`
* Obtain token ([documentation](https://docs.joinmastodon.org/client/authorized/#flow))
* Create and login new Pleroma user
* Open in browser URL: `https://pleroma.example/oauth/authorize?client_id=CLIENT_ID&scope=write:statuses+write:media&redirect_uri=urn:ietf:wg:oauth:2.0:oob&response_type=code`
* Remember `Token code` as `TOKEN_CODE`
@ -40,6 +42,7 @@ $ curl -X POST \
> -F 'scope=write:statuses write:media' \
> https://pleroma.example/oauth/token > pleroma_account.json
```
* Check obtainted token:
```
$ cat pleroma_account.json