capmonstercloud 0.1.0

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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/LICENSE +21 -0
  4. data/README.md +52 -0
  5. metadata +47 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 77458729a1475f20a99ca71608e3aae20c1ba2215bad43bdd8426ea48177a6db
4
+ data.tar.gz: 3e5e77188c4e8af61cfbe4ed8185c8ea0147ad354b42728fa202e28f703e0a4e
5
+ SHA512:
6
+ metadata.gz: 44958f61d0f5842a291e014bc50430322595be9e257df229139cb1add660baa22f43bdc080deaba6a0b789b737837b1907eecef3c523d5b367a997d3e8e4873c
7
+ data.tar.gz: cfaed70d229b1721852ff0da913c0cc35d219f4a42fe0f9b7a4975dabb04c749d68595ceb041d70e4ceef1da893342599ec44e2d8158c8a8f45735971fe68119
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ - Initial release: `get_balance`, `create_task`, `get_task_result`, `solve`
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CapMonster Cloud Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # CapMonster Cloud Ruby Client
2
+
3
+ Official Ruby client for [CapMonster Cloud](https://capmonster.cloud/en/).
4
+
5
+ Solve CAPTCHAs (reCAPTCHA, Cloudflare Turnstile, and more) via the CapMonster Cloud API.
6
+
7
+ ## Useful links
8
+
9
+ - [CapMonster Cloud](https://capmonster.cloud/en/)
10
+ - [Documentation](https://docs.capmonster.cloud/)
11
+ - [Dashboard / API key](https://dash.capmonster.cloud/)
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ gem install capmonstercloud
17
+ ```
18
+
19
+ Or add to your Gemfile:
20
+
21
+ ```ruby
22
+ gem "capmonstercloud"
23
+ ```
24
+
25
+ ## Quick start
26
+
27
+ ```ruby
28
+ require "capmonstercloud"
29
+
30
+ client = CapMonsterCloud::Client.new(client_key: "YOUR_API_KEY")
31
+
32
+ puts client.get_balance
33
+
34
+ result = client.solve({
35
+ "type" => "RecaptchaV2TaskProxyless",
36
+ "websiteURL" => "https://example.com",
37
+ "websiteKey" => "SITE_KEY"
38
+ })
39
+
40
+ puts result.dig("solution", "gRecaptchaResponse")
41
+ ```
42
+
43
+ ## API
44
+
45
+ - `get_balance` — account balance
46
+ - `create_task(task)` — submit a captcha task, returns `taskId`
47
+ - `get_task_result(task_id)` — poll once
48
+ - `solve(task, timeout:, poll_interval:)` — create + poll until ready
49
+
50
+ ## License
51
+
52
+ MIT
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capmonstercloud
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - CapMonster Cloud Team
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Create and poll CAPTCHA solve tasks via CapMonster Cloud.
13
+ email:
14
+ - support@capmonster.cloud
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - CHANGELOG.md
20
+ - LICENSE
21
+ - README.md
22
+ homepage: https://capmonster.cloud/en/
23
+ licenses:
24
+ - MIT
25
+ metadata:
26
+ homepage_uri: https://capmonster.cloud/en/
27
+ source_code_uri: https://github.com/CapMonsterCloudTeam/capmonstercloud-client-ruby
28
+ documentation_uri: https://docs.capmonster.cloud/
29
+ bug_tracker_uri: https://github.com/CapMonsterCloudTeam/capmonstercloud-client-ruby/issues
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: 3.0.0
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.6.9
45
+ specification_version: 4
46
+ summary: Official Ruby client for CapMonster Cloud API
47
+ test_files: []