From ba76df3eda136d58c8cf1409a051c6c43fd21906 Mon Sep 17 00:00:00 2001 From: Macbook Date: Tue, 12 Nov 2024 19:58:21 +0200 Subject: [PATCH] edit method grid --- README.md | 8 ++++---- README.ru.md | 8 ++++---- lib/api_2captcha/client.rb | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d07e1f8..09ab67b 100644 --- a/README.md +++ b/README.md @@ -288,12 +288,12 @@ Grid method is originally called Old reCAPTCHA V2 method. The method can be used ```ruby result = client.grid({ image: 'path/to/captcha.jpg', - rows: 3, - cols: 3, + recaptcharows: 3, + recaptchacols: 3, previous_id: 0, lang: 'en', - hint_image: 'path/to/hint.jpg', - hint_text: 'Select all images with an Orange' + imginstructions: 'path/to/hint.jpg', + textinstructions: 'Select all images with an Orange' }) ``` diff --git a/README.ru.md b/README.ru.md index 4041eaf..2f512f2 100644 --- a/README.ru.md +++ b/README.ru.md @@ -270,12 +270,12 @@ result = client.capy({ ```ruby result = client.grid({ image: 'path/to/captcha.jpg', - rows: 3, - cols: 3, + recaptcharows: 3, + recaptchacols: 3, previous_id: 0, lang: 'en', - hint_image: 'path/to/hint.jpg', - hint_text: 'Select all images with an Orange' + imginstructions: 'path/to/hint.jpg', + textinstructions: 'Select all images with an Orange' }) ``` diff --git a/lib/api_2captcha/client.rb b/lib/api_2captcha/client.rb index 42d4825..8228c2e 100644 --- a/lib/api_2captcha/client.rb +++ b/lib/api_2captcha/client.rb @@ -134,7 +134,7 @@ def capy(params) end def grid(params) - params["recaptcha"] = 1 + params[:recaptcha] = 1 solve("post", **params) end