google_workspace_apis/lib.rs
1//! This crate provides a Rust API client for interacting with Google Workspace APIs,
2//! The main goal is to provide a unified interface for Google Workspace APIs
3//! It's build on the reqwest crate
4//!
5//! The crate includes several examples in the `examples/` directory:
6//! - `axum_calendar_example.rs`: Demonstrates how to set up authentication using axum and make basic API calls.
7//! This example requires the `calendar` feature to be enabled. Make sure to add the correct
8//! config fields like client_id, client_secret, and redirect_uri to your `Config` struct.
9//! - Run examples with `cargo run --example axum_calendar_example --features calendar`
10//!
11
12/// Module for the Google Calendar API interactions.
13/// This requires the `calendar` feature to be enabled.
14#[cfg(feature = "calendar")]
15pub mod calendar;
16
17/// Module for Google Tasks API interactions.
18/// This requires the `tasks` feature to be enabled.
19#[cfg(feature = "tasks")]
20pub mod tasks;
21
22/// Module for authentication and authorization
23pub mod auth;
24#[cfg(feature = "gmail")]
25pub mod gmail;
26
27/// Helper module for utility functions
28pub mod utils;