From f5db56d7e7230424cb49bcb576e853d2e00e5b8d Mon Sep 17 00:00:00 2001 From: Eugen Date: Fri, 26 Aug 2016 20:48:28 +0200 Subject: [PATCH] Updated Testing with cURL (markdown) --- Testing-with-cURL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Testing-with-cURL.md b/Testing-with-cURL.md index e052ed6..8701e4c 100644 --- a/Testing-with-cURL.md +++ b/Testing-with-cURL.md @@ -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: