recaptcha-service 0.3.0

A simplified and centralised interface for verifying reCAPTCHA tokens.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use utils::*;

mod utils;

#[tokio::main]
async fn main() {
    let result = client()
        .verify(
            std::env::var("RECAPTCHA_TOKEN")
                .expect("RECAPTCHA_TOKEN environment variable needs to be set"),
            None,
        )
        .await;

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