diff --git a/developer/templates/console.html b/developer/templates/console.html index 8386e97c..b2b91740 100644 --- a/developer/templates/console.html +++ b/developer/templates/console.html @@ -34,7 +34,7 @@

- Test Access Token + Test Access Token
{% csrf_token %} @@ -50,6 +50,38 @@ curl -H "Authorization: Bearer YOUR_TOKEN" {{ site_url }}/api/me

+
+
+ + How to authorize + + 0. Create an application +
+ 1. Guide your user to open this URL (you must have https://example.org/callback included in the Redirect URIs field) + + 2. Once authorizated by user, it will redirect to https://example.org/callback with a code parameter: + + 3. Obtain access token with the following POST request: + + and access token will be returned in the response: + + 4. Use the access token to access protected endpoints like /api/me + + and response will be returned accordingly: + + more endpoints can be found in API Documentation below. +