Version: 1.0.0
Category: Productivity
Description: Unified access to Gmail, Google Calendar, and Google Drive APIs for sending, reading, deleting emails, managing calendar events, and handling files.
GOOGLE_OAUTH_CLIENT_ID - OAuth2 client ID
GOOGLE_OAUTH_CLIENT_SECRET - OAuth2 client secret
GOOGLE_OAUTH_REDIRECT_URI - OAuth2 redirect URI (e.g., http://localhost:8080/callback)
https://www.googleapis.com/auth/gmail.readonly
https://www.googleapis.com/auth/gmail.send
https://www.googleapis.com/auth/gmail.modify
https://www.googleapis.com/auth/calendar
https://www.googleapis.com/auth/drive
google_suite_tokens.json (by default)
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
skill.execute({
"service": "gmail",
"action": "send",
"to": "user@example.com",
"subject": "Test Email",
"body": "Hello from OpenClaw!"
})
skill.execute({
"service": "gmail",
"action": "list",
"query": "from:boss@company.com"
})
skill.execute({
"service": "gmail",
"action": "delete",
"message_id": "XYZ123..."
})
skill.execute({
"service": "calendar",
"action": "list",
"days": 7
})
skill.execute({
"service": "calendar",
"action": "create",
"summary": "Team Meeting",
"start": "2024-03-01T10:00:00",
"end": "2024-03-01T11:00:00"
})
skill.execute({
"service": "drive",
"action": "list",
"query": "name contains 'report'"
})
skill.execute({
"service": "drive",
"action": "upload",
"file_path": "./myfile.pdf"
})
google_suite_tokens.json to force re-authentication if needed.
共 1 个版本