app: Comments - inoreader user-info
This commit is contained in:
parent
46e4f8e722
commit
e80e88bb99
|
@ -97,6 +97,8 @@ def oauth_redirect():
|
||||||
token['refresh_token'] = 'N/A'
|
token['refresh_token'] = 'N/A'
|
||||||
token['expires_in'] = 3600
|
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={
|
user_info = requests.get('https://api.github.com/user', headers={
|
||||||
'Authorization': f'Bearer {token.get("access_token")}'
|
'Authorization': f'Bearer {token.get("access_token")}'
|
||||||
}).json()
|
}).json()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user