Skip to main content

Installation

Add to your Cargo.toml:
[dependencies]
apialerts = "1.0"

Usage

use apialerts::ApiAlerts;

let client = ApiAlerts::new("YOUR-API-KEY");

// Simple notification
client.send("Deployment successful").await;

// With all options
client.send_event(Event {
    message: "New user signed up".to_string(),
    channel: Some("developers".to_string()),
    link: Some("https://dashboard.example.com/users/123".to_string()),
    tags: Some(vec!["signup".to_string(), "organic".to_string()]),
}).await;

Resources

GitHub Repository

Full documentation, examples, and source code.