Omkar008 commited on
Commit
4755b8e
1 Parent(s): 1db5498

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -2
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.error
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("/")