ruby-2captcha 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d80f00729bbf9f6f08867c59bb5d6e078dbe7675dc14a0b7dd65922ab640663c
4
- data.tar.gz: b8dd22428eab71d775a7d597bd42d661f8ded8cd1b94f30c7c54be507ea5a769
3
+ metadata.gz: 1b8573fa19c5140ac8f5349c4604646c596a332efe75fb5e41fb5d41a33d9512
4
+ data.tar.gz: 641044d2134a3b3f5c5d0530c0f8f977df93d32a6abbb790a6fdfe38db02221a
5
5
  SHA512:
6
- metadata.gz: 36f2d745961278c462b64b2cccbc30b6fee82b67e0b4f768f8068babb1c9af5b8e675b88089ad7c81afa33321f288749ac808d01f23966a50c498a70dea4aeac
7
- data.tar.gz: f91c2ec90c7d09edf188c47b9718bf4152f508f808146b965a3be0e8fa69dbf661cc70df9b8634ff760bcdf54d79d44873119abf09bb353f494203139b670c02
6
+ metadata.gz: ca9d441e40359ae1f03e2afd1e30c948765129486e5821c62d41eeb4f1933025a80dd553dd9fce9ed2a77c907e1278570756e973bfe78d20ffeff5a6b04a4114
7
+ data.tar.gz: a426dafc2ef4b6332f5b79f6b811be0b287003b8322135a12be0c0661aa99be00560c91d31476122b2de99fa494306833c56904b6f8733090d8498e1e7df587d
data/README.md CHANGED
@@ -273,11 +273,16 @@ result = client.lemin({
273
273
  ```
274
274
 
275
275
  ### Cloudflare Turnstile
276
- Use this method to solve Cloudflare Turnstile. Returns JSON with the token.
276
+ Use this method to solve Cloudflare Turnstile. Returns JSON with the token and User-Agent.
277
277
  ```ruby
278
278
  result = client.turnstile({
279
- sitekey: '0x1AAAAAAAAkg0s2VIOD34y5',
280
- pageurl: 'http://mysite.com/'
279
+ sitekey: "0x0AAAAAAADnPIDROzbs0Aaj",
280
+ data: "7fab0000b0e0ff00",
281
+ pagedata: "3gAFo2...0ME1UVT0=",
282
+ pageurl: "https://2captcha.com/",
283
+ action: "managed",
284
+ userAgent: "Mozilla/5.0 ... Chrome/116.0.0.0 Safari/537.36",
285
+ json: 1
281
286
  })
282
287
  ```
283
288
 
@@ -27,7 +27,7 @@ module Api2Captcha
27
27
  @domain = DEFAULT_DOMAIN
28
28
  end
29
29
 
30
- def solve(method, file_path = nil, return_id: false, **params)
30
+ def solve(method, return_id: false, **params)
31
31
  params = params.transform_keys(&:to_s)
32
32
  params["method"] = method
33
33
  params["key"] = @api_key
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Api2Captcha
4
- VERSION = "1.1.0"
4
+ VERSION = "1.1.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-2captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - 2captcha.com
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-04 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby package for easy integration with the API of 2captcha captcha solving
14
14
  service to bypass recaptcha, hcaptcha, funcaptcha, geetest and solve any other captchas.