Repository navigation
Conversation
RecaptchaV2EnterpriseRequest, RecaptchaV3ProxylessRequest and RecaptchaV3EnterpriseRequest accept an optional min_score (0.1-0.9, serde name minScore, builder with_min_score, validated by check_min_score) but the table did not mention it. - Note optional min_score (0.1-0.9) on the three reCAPTCHA rows
The builder methods accepted by ClientOptions were not described in the README. - Add a Client Configuration section: ClientOptions::new(api_key) with with_service_url, with_soft_id (DEFAULT_SOFT_ID 152 sent with every createTask), with_client_timeout (20 s per HTTP request), with_client_proxy (ClientProxy with ProxyType and optional with_auth), and with_timeouts_override, with a builder example
The Error enum and the polling behaviour were not described in detail in the README. - Add an Error Handling section: every variant of the capmonstercloud_client::Error enum (CreateTask, GetResult, GetBalance with code/description, Timeout(Duration), Validation, Status, Http, Json, MalformedResponse, UnsupportedProxyType) with a match example - Describe automatic getTaskResult polling: the per-type GetResultTimeouts schedule, GetResultTimeouts::new and with_timeouts_override, and cancellation by dropping the future or wrapping the call in tokio::time::timeout - Note that unsolved tasks are not charged
solve_captcha returns SolvedTask { solution, cost }; the quick start
examples already read SolvedTask.solution but the error handling match
still indexed the old shape.
- Show solved.cost in the Quick Start example and fix the match example
to read SolvedTask.solution
- Note the USD price of a solution in the polling and timeouts section
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the Rust SDK README for UOD-421. Covers minScore in the types table, client options, error handling and polling, and the solution cost. All content is README-only.
1. minScore in the types table - README.md
min_score(0.1-0.9, builderwith_min_score) onRecaptchaV2EnterpriseRequest,RecaptchaV3ProxylessRequestandRecaptchaV3EnterpriseRequest(three replaced table rows)2. Client options - README.md
with_service_url,with_soft_id(DEFAULT_SOFT_ID 152),with_client_timeout,with_client_proxy,with_timeouts_overridewith aCapMonsterClient::newexample3. Error handling and polling - README.md
capmonstercloud_client::Errorand theGetResultTimeoutsschedule withwith_timeouts_override4. Solution cost - README.md
SolvedTask.cost: Option<f64>(USD) and fixes the error handling match example to readSolvedTask.solutionafter the return type changeCommits:
Stats: 1 file changed, 59 insertions(+), 3 deletions(-) (three replaced or fixed lines).