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
43
44
//! Google Forms API client for the grr suite.
//!
//! Typed endpoints (forms.get, forms.responses.list) over the shared
//! HTTP/3 engine. Forms has no list endpoint — callers bring the form ID
//! themselves (see [`FormsClient::get_form`] for the accepted spellings).
//!
//! Scopes: the shared credential already requests
//! `https://www.googleapis.com/auth/forms.body` and
//! `https://www.googleapis.com/auth/forms.responses.readonly`, 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::forms::FormsClientBuilder;
//!
//! let auth = AuthConfigBuilder::new()
//! .client_id("...".to_string())
//! .client_secret(Some("...".to_string()))
//! .build()
//! .await?;
//! let client = FormsClientBuilder::new().auth(auth).build().await?;
//! let form = client.get_form("FORM_ID").await?;
//! println!("{:?}", form.info.and_then(|info| info.title));
//! # Ok(())
//! # }
//! ```
pub use *;
pub use *;
/// Prelude for convenient imports