fix(doc): README formatting
This commit is contained in:
parent
90946bacf0
commit
4d08c112da
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue