From 55a1b643d4fec5bc3966e85827cc5891028c1dc0 Mon Sep 17 00:00:00 2001 From: Swapnil Date: Wed, 31 Jan 2024 11:46:41 +0530 Subject: [PATCH] app: Comments - inoreader user-info --- app/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/main.py b/app/main.py index 5d0c625..06749a2 100644 --- a/app/main.py +++ b/app/main.py @@ -97,6 +97,8 @@ def oauth_redirect(): token['refresh_token'] = 'N/A' token['expires_in'] = 3600 + # REPLACE user API call with inoreader API call + # https://www.inoreader.com/reader/api/0/user-info user_info = requests.get('https://api.github.com/user', headers={ 'Authorization': f'Bearer {token.get("access_token")}' }).json()