Expand description
§Sevk SDK for Rust
Official Rust SDK for Sevk - Email Marketing Platform
§Example
use sevk::Sevk;
#[tokio::main]
async fn main() -> Result<(), sevk::Error> {
let client = Sevk::new("sevk_your_api_key");
// List contacts
let contacts = client.contacts().list(None).await?;
println!("Total contacts: {}", contacts.total);
// Create a contact
let contact = client.contacts().create("user@example.com", None).await?;
println!("Created contact: {}", contact.id);
Ok(())
}Re-exports§
pub use client::Client;pub use client::SevkOptions;pub use error::Error;pub use markup::generate_email_from_markup;pub use markup::EmailHeadSettings;
Modules§
- client
- HTTP client for the Sevk API
- error
- Error types for the Sevk SDK
- markup
- Markup renderer for converting Sevk markup to HTML email
- resources
- API Resources for the Sevk SDK
- types
- Type definitions for the Sevk SDK
Structs§
- Email
Limit Entry - Email limit entry
- Email
Limits Data - Email limits data
- Email
Stats Data - Email statistics data
- Project
Email Limits - Project email limits
- Sevk
- Main entry point for the Sevk SDK
- Usage
- Project usage and limits data
- Usage
Count - Resource counts