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
//! Official async Rust client for the [Senviok](https://senviok.live) messaging API.
//!
//! Send transactional email, SMS, and WhatsApp, and manage templates, domains,
//! audiences, contacts, suppressions, webhooks, and delivery logs.
//!
//! ```no_run
//! use senviok::{SendEmailRequest, Senviok};
//!
//! # async fn run() -> Result<(), senviok::SenviokError> {
//! let client = Senviok::new("svk_live_...");
//!
//! let sent = client
//! .emails()
//! .send(SendEmailRequest {
//! from: "Acme <hello@acme.com>".into(),
//! to: "user@acme.com".into(),
//! subject: "Welcome".into(),
//! html: Some("<p>Hello</p>".into()),
//! ..Default::default()
//! })
//! .await?;
//!
//! println!("{}", sent.id);
//! # Ok(())
//! # }
//! ```
//!
//! See the crate README for full examples. The default API host is
//! `https://api.senviok.live`.
pub use Senviok;
pub use SenviokError;
pub use *;