Rust library to interact with mCaptcha API
Go to file
Aravinth Manivannan 01a7703904
feat: document usage
2024-01-02 23:50:55 +05:30
scripts feat: init 2024-01-02 19:20:55 +05:30
src feat: document usage 2024-01-02 23:50:55 +05:30
.env_sample feat: init 2024-01-02 19:20:55 +05:30
.gitignore feat: init 2024-01-02 19:20:55 +05:30
.woodpecker.yml fix: use dotenv to load test data 2024-01-02 20:10:06 +05:30
Cargo.toml fix: use dotenv to load test data 2024-01-02 20:10:06 +05:30
Makefile fix: use dotenv to load test data 2024-01-02 20:10:06 +05:30
README.md feat: document usage 2024-01-02 23:50:55 +05:30
requirements.txt feat: init 2024-01-02 19:20:55 +05:30

README.md

status-badge


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());