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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//! People (Google Contacts) API client for the grr suite.
//!
//! Typed endpoints (list connections, prefix search, get, create,
//! update, delete) over the shared HTTP/3 engine.
//!
//! Scopes: the shared credential already requests
//! `https://www.googleapis.com/auth/contacts`, covering every endpoint
//! in this module.
//!
//! ```no_run
//! # async fn demo() -> Result<(), Box<dyn std::error::Error>> {
//! use grr_cli::core::auth::AuthConfigBuilder;
//! use grr_cli::people::{ListConnectionsOptions, PeopleClientBuilder};
//!
//! let auth = AuthConfigBuilder::new()
//! .client_id("...".to_string())
//! .client_secret(Some("...".to_string()))
//! .build()
//! .await?;
//! let client = PeopleClientBuilder::new().auth(auth).build().await?;
//! let contacts = client.list_connections(ListConnectionsOptions::default()).await?;
//! println!("{} contacts", contacts.len());
//! # Ok(())
//! # }
//! ```
pub use *;
pub use *;
/// Prelude for convenient imports