1 unstable release
| 0.2.0 | Jan 3, 2026 |
|---|
#458 in HTTP client
225KB
6K
SLoC
ThreatFlux Google SDK.
Provides OAuth helpers, token management, and Google API clients for Gmail and Calendar.
ThreatFlux Google SDK
A reusable Google API client for ThreatFlux services. Includes OAuth token refresh helpers, Gmail API utilities, and Google Calendar API utilities.
Features
- OAuth scope catalogs for Google Cloud, Gmail, and Calendar.
- Token management helpers (refresh, scope merge, expiry skew handling).
- Gmail API helpers (list messages, fetch message, send message).
- Google Calendar API helpers (list, create, update, delete events).
Quick start
use threatflux_google_sdk::oauth::{google_cloud_scope_catalog, ScopeCatalog};
use threatflux_google_sdk::tokens::{GoogleTokenManager, TokenStore};
Enable the optional auth-sdk feature to integrate with threatflux-auth-sdk OAuth configs.
License
MIT
Dependencies
~7–34MB
~487K SLoC