Crate mcaptcha_api_rs

source ·
Expand description

mcaptcha-api-rs: Library to interact with with mCaptcha API

This library provides a convenient interface to validate mCaptcha authorization tokens presented by Visitors against your mCaptcha instances. It uses reqwest, and native-tls under the hood to communicate with the API.

 use url::Url;
 use mcaptcha_api_rs::MCaptcha;

 let mcaptcha = MCaptcha::new("sitekeyfromdashboard", "secretfromdashboadr", Url::parse("https://mcaptcha.example.com").unwrap());
 assert!(mcaptcha.verify("authorizationtokenfromvisitor").await.unwrap());

Structs