slacko 0.2.2

Comprehensive Rust SDK for the Slack API with stealth mode support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use slacko::{AuthConfig, SlackClient};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    // Load from environment
    let client = SlackClient::new(AuthConfig::from_env()?)?;

    // Post message to DM
    let response = client
        .chat()
        .post_message("DG4599EJ3", "Hello from the Slack SDK! 🚀")
        .await?;

    println!("Message sent! ts: {}", response.ts);
    Ok(())
}