Rust library to interact with mCaptcha API
Aravinth Manivannan
69cee09d72
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending
Reviewed-on: #4 |
||
---|---|---|
.reuse | ||
LICENSES | ||
scripts | ||
src | ||
.env_sample | ||
.gitignore | ||
.woodpecker.yml | ||
Cargo.toml | ||
Makefile | ||
README.md | ||
renovate.json | ||
requirements.txt |
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.
Install
cargo add mcaptcha-api-rs
Example
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());