linkshieldai 0.2.0

Rust SDK for the LinkShieldAI URL safety API.
Documentation
1
2
3
4
5
6
7
8
9
use linkshieldai::LinkShieldAI;

#[tokio::main]
async fn main() -> linkshieldai::Result<()> {
    let client = LinkShieldAI::new(std::env::var("LINKSHIELDAI_API_KEY").unwrap_or_default())?;
    let result = client.scan("https://example.com", "standard").await?;
    println!("{} {}", result.verdict, result.request_id);
    Ok(())
}