rust_anticaptcha/
lib.rs

1#![allow(non_camel_case_types)]
2#![allow(non_snake_case)]
3
4//! # rust-anticaptcha
5//!
6//! The `rust-anticaptcha` crate provides Rust async interface for AntiCaptcha service API.
7//!
8//! It handles all captcha types available at AntiCaptcha service:
9//!
10//! - Image captcha
11//! - ReCaptcha V2 and V3
12//! - FunCaptcha
13//! - GeeTest
14//! - Turnstile
15//! - Custom captcha
16//! - And additional methods like reporting and get account balance
17//!
18//! ## Basic example for Image captcha
19//! ```no_run
20//! use serde_json::json;
21//!
22//! use rust_anticaptcha::core::enums::ImageTaskType;
23//! use rust_anticaptcha::image_captcha::ImageCaptcha;
24//!
25//! async fn run() {
26//!      let map = json!({"body": "base64_string"});
27//!      let mut image_to_text_client = ImageCaptcha::new("API_KEY".to_string());
28//!      image_to_text_client.captcha_handler(ImageTaskType::ImageToTextTask, &map).await;
29//! }
30//! ```
31//!
32//! # Notes
33//! Read more here:
34//!
35//! <https://anti-captcha.com/apidoc>
36//!
37
38pub mod core;
39pub mod control;
40pub mod instruments;
41pub mod image_captcha;
42pub mod token_captcha;