Pulse Security

Rust SDK

## Installation ```sh cargo add pulsesecurity ``` ```toml pulsesecurity = "0.1.2" ``` ## Verification ```rs use pulsesecurity::{Pulse, PulseError}; #[tokio::main] async fn main() { let pulse = Pulse::new("SITE_KEY".to_string(), "SECRET_KEY".to_string()); let token = "REQUEST_TOKEN".to_string(); match pulse.classify(token).await { Ok(is_bot) => { println!("Result: {}", is_bot); } Err(err) => match err { PulseError::TokenNotFoundError(_) => { println!("Token not found"); } PulseError::TokenUsedError(_) => { println!("Token already used"); } PulseError::TokenExpiredError(_) => { println!("Token expired"); } _ => { println!("Unknown error") } }, } } ```