linkshieldai 0.2.0

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

#[tokio::main]
async fn main() -> linkshieldai::Result<()> {
    let client = LinkShieldAI::new("")?;
    let result = client.basic_check("https://example.com").await?;

    println!("{:?}", result.result);
    println!("{}", result.is_malicious);

    Ok(())
}