1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//! A high level async library that allows you to use the 2captcha API
//! to solve various types of captcha puzzles
//!
//! # Example
//! ```no_run
//! use captcha_oxide::{
//! CaptchaSolver,
//! captcha::types::recaptcha::v3::RecaptchaV3,
//! Captcha,
//! };
//!
//! use url::Url;
//!
//! async fn example() -> captcha_oxide::Result<()> {
//! let solver = CaptchaSolver::new("YOUR TWOCAPTCHA API KEY");
//!
//! let args = RecaptchaV3::builder()
//! .website_url(Url::parse("https://someurl.com")?)
//! .website_key("SITE_KEY")
//! .min_score(0.3)
//! .build();
//!
//! let solution = solver
//! .solve(args)
//! .await?
//! .solution
//! .g_recaptcha_response;
//!
//! assert!(!solution.is_empty());
//!
//! Ok(())
//! }
//! ```
//!
//! # Should I migrate from v5.2.0?
//! Unless you need `TencentCaptcha` or `AtbCaptcha`, there is no
//! need to migrate if you have an existing project using version
//! `5.2.0`.
//!
//! Version `6.0.0` is a restructure of the API and the macros
//! aimed at making them more convinient to maintain, especially
//! as the previous macro system was cumbersome and had very poor
//! syntax. If you are creating a new project, we do recommend using
//! version 6.
//!
//! # MSRV
//! The Minimum Supported Rust Version is 1.70.0
pub const SOFT_ID: u16 = 4143;
pub use Captcha;
pub use CaptchaSolver;
pub use ;