Spaces:
Sleeping
Sleeping
sec file
Browse files
agentic_implementation/email_mcp_server_oauth.py
CHANGED
|
@@ -21,6 +21,12 @@ from logger import logger
|
|
| 21 |
|
| 22 |
load_dotenv()
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Initialize Gmail API scraper
|
| 25 |
gmail_scraper = GmailAPIScraper()
|
| 26 |
|
|
|
|
| 21 |
|
| 22 |
load_dotenv()
|
| 23 |
|
| 24 |
+
if not oauth_manager.client_secrets_file.exists():
|
| 25 |
+
oauth_manager.setup_client_secrets(
|
| 26 |
+
os.environ["GOOGLE_CLIENT_ID"],
|
| 27 |
+
os.environ["GOOGLE_CLIENT_SECRET"]
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
# Initialize Gmail API scraper
|
| 31 |
gmail_scraper = GmailAPIScraper()
|
| 32 |
|