Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ A Ruby client for the 2Captcha API.
- [reCAPTCHA v2](#recaptcha-v2)
- [reCAPTCHA v3](#recaptcha-v3)
- [reCAPTCHA Enterprise](#recaptcha-enterprise)
- [FunCaptcha](#funcaptcha)
- [GeeTest](#geetest)
- [hCaptcha](#hcaptcha)
- [KeyCaptcha](#keycaptcha)
Expand All @@ -31,6 +32,7 @@ A Ruby client for the 2Captcha API.
- [DataDome](#datadome)
- [MTCaptcha](#mtcaptcha)
- [Friendly captcha](#friendly-captcha)
- [Cutcaptcha](#cutcaptcha)
- [Other methods](#other-methods)
- [send / get_result](#send--get_result)
- [balance](#balance)
Expand Down Expand Up @@ -369,6 +371,16 @@ result = client.friendly({
})
```

### Cutcaptcha
Use this method to solve Cutcaptcha and obtain a token to bypass the protection.
```ruby
result = client.cutcaptcha({
misery_key: "a1488b66da00bf332a1488993a5443c79047e752",
api_key: "SAb83IIB",
pageurl: "https://example.cc/foo/bar.html"
})
```

## Other methods

### send / get_result
Expand Down
12 changes: 12 additions & 0 deletions README.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Ruby-клиент для API 2Captcha.
- [Текстовая капча](#text-captcha)
- [ReCaptcha v2](#recaptcha-v2)
- [ReCaptcha v3](#recaptcha-v3)
- [FunCaptcha](#funcaptcha)
- [GeeTest](#geetest)
- [hCaptcha](#hcaptcha)
- [KeyCaptcha](#keycaptcha)
Expand All @@ -29,6 +30,7 @@ Ruby-клиент для API 2Captcha.
- [DataDome](#datadome)
- [MTCaptcha](#mtcaptcha)
- [Friendly captcha](#friendly-captcha)
- [Cutcaptcha](#cutcaptcha)
- [Другие методы](#other-methods)
- [send / get_result](#send--get_result)
- [balance](#balance)
Expand Down Expand Up @@ -326,6 +328,16 @@ result = client.friendly({
})
```

### Cutcaptcha
Метод решения Cutcaptcha. Он возвращает токен для обхода капчи.
```ruby
result = client.cutcaptcha({
misery_key: "a1488b66da00bf332a1488993a5443c79047e752",
api_key: "SAb83IIB",
pageurl: "https://example.cc/foo/bar.html"
})
```

## Другие методы

### send / get_result
Expand Down
4 changes: 4 additions & 0 deletions lib/api_2captcha/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ def friendly(params)
solve("friendly_captcha", **params)
end

def cutcaptcha(params)
solve("cutcaptcha", **params)
end

private

def base_url
Expand Down