mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Updated Testing with cURL (markdown)
parent
10e5c881b4
commit
f5db56d7e7
1 changed files with 1 additions and 1 deletions
|
|
@ -4,7 +4,7 @@ Once logged in on Mastodon, you can go to Authorized Apps -> Register new app he
|
|||
|
||||
From these two, you will need to acquire an access token. It is possible to do using your account's e-mail and password like this:
|
||||
|
||||
curl -X POST -d "client_id=CLIENT_ID_HEREclient_secret=CLIENT_SECRET_HERE&grant_type=password&username=YOUR_EMAIL&password=YOUR_PASSWORD" -Ss https://mastodon.social/oauth/token
|
||||
curl -X POST -d "client_id=CLIENT_ID_HERE&client_secret=CLIENT_SECRET_HERE&grant_type=password&username=YOUR_EMAIL&password=YOUR_PASSWORD" -Ss https://mastodon.social/oauth/token
|
||||
|
||||
The response will be a JSON object containing the key `access_token`. Use that token in any API requests by setting a header like this:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue