diff --git a/files/templates/api.html b/files/templates/api.html index b486af70e..af937bd40 100644 --- a/files/templates/api.html +++ b/files/templates/api.html @@ -19,13 +19,13 @@

Python example:

	import requests
 
-		headers = {"Authorization": "access_token_goes_here"}
+	headers = {"Authorization": "access_token_goes_here"}
 
-		url = "{{SITE_FULL}}/?sort=comments"
+	url = "{{SITE_FULL}}/?sort=comments"
 
-		r = requests.get(url, headers=headers)
+	r = requests.get(url, headers=headers)
 
-		print(r.json())
+	print(r.json())
 	

The expected result of this would be a large JSON representation of the posts on the frontpage sorted by the number of comments

@@ -34,13 +34,13 @@

Aother python example:

	import requests
 
-		headers = {"Authorization": "access_token_goes_here"}
+	headers = {"Authorization": "access_token_goes_here"}
 
-		url = "{{SITE_FULL}}/unread"
+	url = "{{SITE_FULL}}/unread"
 
-		r = requests.get(url, headers=headers)
+	r = requests.get(url, headers=headers)
 
-		print(r.json())
+	print(r.json())
 	

The expected result of this would be a JSON representation of unread notifications for your account

@@ -71,13 +71,13 @@

Python example:

	import requests
 
-		headers = {"Authorization": "access_token_goes_here"}
+	headers = {"Authorization": "access_token_goes_here"}
 
-		url = "{{SITE_FULL}}/?sort=comments"
+	url = "{{SITE_FULL}}/?sort=comments"
 
-		r = requests.get(url, headers=headers)
+	r = requests.get(url, headers=headers)
 
-		print(r.json())
+	print(r.json())
 	

The expected result of this would be a large JSON representation of the posts on the frontpage sorted by the number of comments

@@ -86,13 +86,13 @@

Aother python example:

	import requests
 
-		headers = {"Authorization": "access_token_goes_here"}
+	headers = {"Authorization": "access_token_goes_here"}
 
-		url = "{{SITE_FULL}}/unread"
+	url = "{{SITE_FULL}}/unread"
 
-		r = requests.get(url, headers=headers)
+	r = requests.get(url, headers=headers)
 
-		print(r.json())
+	print(r.json())
 	

The expected result of this would be a JSON representation of unread notifications for your account

{% endblock %}