Skip to main content

Crate senviok

Crate senviok 

Source
Expand description

Official async Rust client for the Senviok messaging API.

Send transactional email, SMS, and WhatsApp, and manage templates, domains, audiences, contacts, suppressions, webhooks, and delivery logs.

use senviok::{SendEmailRequest, Senviok};

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);

See the crate README for full examples. The default API host is https://api.senviok.live.

Re-exports§

pub use client::Senviok;
pub use error::SenviokError;
pub use models::*;

Modules§

client
error
models
resources