From 8eee22565d6c0bca85911ac06c1d66c4b135addc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 27 May 2022 00:39:11 +0200 Subject: [PATCH] fds --- files/templates/api.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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"