diff --git a/files/templates/api.html b/files/templates/api.html index 36a9201d3..43713f978 100644 --- a/files/templates/api.html +++ b/files/templates/api.html @@ -37,6 +37,21 @@ 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
+ +Aother python example:
+import requests + + headers={"Authorization": "access_token_goes_here"} + + url="{{SITE_FULL}}/unread" + + r=requests.get(url, headers=headers) + + print(r.json()) ++
The expected result of this would be a JSON representation of unread notifications for your account
@@ -79,4 +94,19 @@ 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
+ +Aother python example:
+import requests + + headers={"Authorization": "access_token_goes_here"} + + url="{{SITE_FULL}}/unread" + + r=requests.get(url, headers=headers) + + print(r.json()) ++
The expected result of this would be a JSON representation of unread notifications for your account
{% endblock %} \ No newline at end of file