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
17
use slacko::{AuthConfig, SlackClient};

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

    // Test auth to get user info
    let response = client.auth().test().await?;

    println!("Auth test:");
    println!("  User: {}", response.user);
    println!("  User ID: {}", response.user_id);
    println!("  Team: {}", response.team);
    println!("  Team ID: {}", response.team_id);

    Ok(())
}