Spaces:
Sleeping
Sleeping
File size: 1,020 Bytes
d7b3d84 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
"""
Gmail Integration for Browser Use
Provides Gmail API integration for email reading and verification code extraction.
This integration enables agents to read email content and extract verification codes themselves.
Usage:
from browser_use.integrations.gmail import GmailService, register_gmail_actions
# Option 1: Register Gmail actions with file-based authentication
tools = Tools()
register_gmail_actions(tools)
# Option 2: Register Gmail actions with direct access token (recommended for production)
tools = Tools()
register_gmail_actions(tools, access_token="your_access_token_here")
# Option 3: Use the service directly
gmail = GmailService(access_token="your_access_token_here")
await gmail.authenticate()
emails = await gmail.get_recent_emails()
"""
# @file purpose: Gmail integration for 2FA email authentication and email reading
from .actions import register_gmail_actions
from .service import GmailService
__all__ = ['GmailService', 'register_gmail_actions']
|