Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -26,10 +26,11 @@ async def get_gmail_data(request:Request):
|
|
26 |
data = await request.json()
|
27 |
access_token = data.get("access_token")
|
28 |
user_input = data.get("brand_name")
|
29 |
-
data = GmailDataExtractor(access_token,user_input)
|
|
|
30 |
print(data.error)
|
31 |
print(data.json())
|
32 |
-
return data
|
33 |
|
34 |
|
35 |
@app.get("/")
|
|
|
26 |
data = await request.json()
|
27 |
access_token = data.get("access_token")
|
28 |
user_input = data.get("brand_name")
|
29 |
+
data = GmailDataExtractor(access_token,user_input).extract_messages().json()
|
30 |
+
|
31 |
print(data.error)
|
32 |
print(data.json())
|
33 |
+
return data
|
34 |
|
35 |
|
36 |
@app.get("/")
|