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
//! # OmniSocials Rust SDK
//!
//! The official Rust client for the [OmniSocials API](https://docs.omnisocials.com):
//! schedule and publish social media posts to Instagram, Facebook, LinkedIn,
//! YouTube, TikTok, X, Pinterest, Bluesky, Threads, Mastodon, and Google
//! Business from one API.
//!
//! ```no_run
//! use omnisocials::{Client, CreatePostParams};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), omnisocials::Error> {
//! let client = Client::from_env()?; // reads OMNISOCIALS_API_KEY
//!
//! let post = client
//! .posts()
//! .create(CreatePostParams {
//! content: "Hello from the SDK".into(),
//! channels: Some(vec!["instagram".into(), "linkedin".into()]),
//! scheduled_at: Some("2026-08-01T09:00:00Z".into()),
//! ..Default::default()
//! })
//! .await?;
//!
//! println!("created {}", post["data"]["id"]);
//! Ok(())
//! }
//! ```
//!
//! All methods return the parsed response body as a [`serde_json::Value`],
//! as-is (single items as `{"data": {...}}`, lists as
//! `{"data": [...], "pagination": {...}}`); `204 No Content` returns
//! [`serde_json::Value::Null`]. Retries on 429 / 5xx / connection errors are
//! automatic, with exponential backoff and `Retry-After` support.
//!
//! Webhook deliveries are verified with
//! [`webhooks::verify_signature`].
pub use ;
pub use Error;
pub use ;