Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -13,7 +13,7 @@ from bs4 import BeautifulSoup
|
|
13 |
import re
|
14 |
from get_gmail_data import GmailDataExtractor
|
15 |
from dotenv import load_dotenv
|
16 |
-
|
17 |
|
18 |
app = FastAPI()
|
19 |
load_dotenv()
|
@@ -62,6 +62,7 @@ async def test_google(code:str):
|
|
62 |
"client_secret": GOOGLE_CLIENT_SECRET,
|
63 |
"redirect_uri": GOOGLE_REDIRECT_URI,
|
64 |
"grant_type": "authorization_code",
|
|
|
65 |
}
|
66 |
response = requests.post(token_url, data=data)
|
67 |
|
|
|
13 |
import re
|
14 |
from get_gmail_data import GmailDataExtractor
|
15 |
from dotenv import load_dotenv
|
16 |
+
import os
|
17 |
|
18 |
app = FastAPI()
|
19 |
load_dotenv()
|
|
|
62 |
"client_secret": GOOGLE_CLIENT_SECRET,
|
63 |
"redirect_uri": GOOGLE_REDIRECT_URI,
|
64 |
"grant_type": "authorization_code",
|
65 |
+
"access_type": "offline"
|
66 |
}
|
67 |
response = requests.post(token_url, data=data)
|
68 |
|