refactor: readme styling
This commit is contained in:
parent
cbbd64bf17
commit
362b8d300f
1 changed files with 8 additions and 4 deletions
12
README.md
12
README.md
|
@ -9,21 +9,25 @@ Plemara acts as a [Matrix](https://matrix.org/docs/spec/) bridge to the Fedivers
|
|||
1. `curl -X POST -d "client_name=<NAME HERE>&redirect_uris=urn:ietf:wg:oauth:2.0:oob&scopes=write follow read&website=http://fediverse.site" https://fediverse.site/api/v1/apps`
|
||||
|
||||
Result:
|
||||
`{"client_id":"result",
|
||||
```json
|
||||
{"client_id":"result",
|
||||
"client_secret":"result",
|
||||
"id":"result",
|
||||
"name":"result",
|
||||
"redirect_uri":"urn:ietf:wg:oauth:2.0:oob",
|
||||
"website":"http://fediverse.site",
|
||||
"vapid_key":"vapid_key"}`
|
||||
"vapid_key":"vapid_key"}
|
||||
```
|
||||
|
||||
2. `curl -X POST -d "client_id=sekret&client_secret=sekret&scope=write follow read&grant_type=password&username=sekret@email.com&password=sekret" https://fediverse.site/oauth/token`
|
||||
|
||||
Result:
|
||||
`{"token_type":"Bearer",
|
||||
```json
|
||||
{"token_type":"Bearer",
|
||||
"scope":"write read",
|
||||
"me":"https://fediverse.site/users/<your username>",
|
||||
"access_token":"result"}`
|
||||
"access_token":"result"}
|
||||
```
|
||||
|
||||
The access_token from the above command is then stored in the [config.js](https://github.com/vulet/plemara/blob/master/config.js) file.
|
||||
# Images
|
||||
|
|
Loading…
Reference in a new issue