diff --git a/files/templates/api.html b/files/templates/api.html index 1de23a226a..de0bbf53bd 100644 --- a/files/templates/api.html +++ b/files/templates/api.html @@ -28,7 +28,7 @@
Python example:
import requests - headers={"Authorization": "access_token_goes_here"} + headers={"User-Agent": "bot for comments", "Authorization": "access_token_goes_here"} url="{{SITE_FULL}}/?sort=comments" @@ -43,7 +43,7 @@Aother python example:
import requests - headers={"Authorization": "access_token_goes_here"} + headers={"User-Agent": "bot for comments", "Authorization": "access_token_goes_here"} url="{{SITE_FULL}}/unread" @@ -85,7 +85,7 @@Python example:
import requests - headers={"Authorization": "access_token_goes_here"} + headers={"User-Agent": "bot for comments", "Authorization": "access_token_goes_here"} url="{{SITE_FULL}}/?sort=comments" @@ -100,7 +100,7 @@Aother python example:
import requests - headers={"Authorization": "access_token_goes_here"} + headers={"User-Agent": "bot for comments", "Authorization": "access_token_goes_here"} url="{{SITE_FULL}}/unread"