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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
//! The official Rust client for the Openhandle API. It reads public
//! Instagram, TikTok, X, Reddit, and YouTube data.
//!
//! Every call follows one grammar:
//!
//! ```text
//! client.<platform>().<resource>(reference).<subresource>().<operation>(options)
//! ```
//!
//! Selecting a resource never sends a request. Only the terminal operations
//! `get`, `list`, `search`, and `fetch` do.
//!
//! ```no_run
//! use openhandle::{Client, Freshness, InstagramProfileOptions};
//!
//! # async fn run() -> Result<(), openhandle::Error> {
//! let client = Client::new(std::env::var("OPENHANDLE_TEST_KEY").unwrap_or_default())?;
//! let profile = client.instagram().profile("northstar_forge_test");
//!
//! let response = profile
//! .get(InstagramProfileOptions::new().freshness(Freshness::TwentyFourHours))
//! .await?;
//! println!("{:?} {:?}", response.data.handle, response.billing.cost);
//!
//! let mut posts = profile.posts().items(None);
//! while let Some(post) = posts.next().await {
//! println!("{:?}", post?.id);
//! }
//! # Ok(())
//! # }
//! ```
pub use ;
pub use ;
pub use *;
pub use ;
pub use ;
pub use ;
/// Response models generated from the OpenAPI component schemas.