|
1 |
| -#  |
| 1 | +#  |
2 | 2 |
|
3 |
| - |
4 |
| - |
5 |
| - |
| 3 | + |
| 4 | + |
| 5 | + |
6 | 6 |
|
7 |
| -Simple HTTP API wrapper for https://anti-captcha.com/ |
| 7 | +Simple HTTP API wrapper for [anti-captcha.com](https://anti-captcha.com/) |
8 | 8 | An online captcha solving and image recognition service.
|
9 | 9 |
|
10 |
| -## 🔗 Download |
11 |
| -* Latest release: https://github.com/Zaczero/AntiCaptcha/releases/latest |
| 10 | +## 🌤️ Installation |
12 | 11 |
|
13 |
| -## ☕ Support me |
14 |
| -If you find this project useful and you are new to anti captcha please consider registering from my [referrral link](http://getcaptchasolution.com/i4lbjatsex). |
| 12 | +### Install with NuGet (recommended) |
15 | 13 |
|
16 |
| -## 🏁 Sample code |
| 14 | +`Install-Package AntiCaptchaAPI` |
| 15 | + |
| 16 | +### Install manually |
| 17 | + |
| 18 | +[Browse latest GitHub release](https://github.com/Zaczero/AntiCaptcha/releases/latest) |
| 19 | + |
| 20 | +## 🏁 Getting started |
| 21 | + |
| 22 | +### Sample code |
17 | 23 |
|
18 | 24 | ```cs
|
19 |
| -var antiCaptcha = new AntiCaptcha(" ## YOUR API KEY ## "); |
| 25 | +var captcha = new AntiCaptcha(" ## YOUR API KEY ## "); |
| 26 | +// .. additionally you can pass your own httpClient class |
| 27 | +var captchaWithHttpClient = new AntiCaptcha(" ## YOUR API KEY ## ", new HttpClient()); |
20 | 28 |
|
21 | 29 | // Get current balance
|
22 |
| -var balance = await antiCaptcha.GetBalance(); |
| 30 | +var balance = await captcha.GetBalance(); |
23 | 31 |
|
24 | 32 | // Solve image captcha
|
25 |
| -var image = await antiCaptcha.SolveImage("iVBORw0KGgo..."); |
| 33 | +var image = await captcha.SolveImage("iVBORw0KGgo..."); |
26 | 34 |
|
27 | 35 | // Solve ReCaptchaV2
|
28 |
| -var recaptcha = await antiCaptcha.SolveReCaptchaV2("GOOGLE_SITE_KEY", "https://example.com"); |
29 |
| -var recaptchaInvisible = await antiCaptcha.SolveReCaptchaV2("GOOGLE_SITE_KEY", "https://example.com", true); |
| 36 | +var recaptcha = await captcha.SolveReCaptchaV2("GOOGLE_SITE_KEY", "https://example.com"); |
| 37 | +var recaptchaInvisible = await captcha.SolveReCaptchaV2("GOOGLE_SITE_KEY", "https://example.com", true); |
30 | 38 |
|
31 | 39 | // Solve FunCaptcha
|
32 |
| -var fun = await antiCaptcha.SolveFunCaptcha("FUN_CAPTCHA_PUBLIC_KEY", "https://example.com"); |
| 40 | +var fun = await captcha.SolveFunCaptcha("FUN_CAPTCHA_PUBLIC_KEY", "https://example.com"); |
33 | 41 |
|
34 | 42 | // Solve SquareNet
|
35 |
| -var square = await antiCaptcha.SolveSquareNet("iVBORw0KGgo...", "banana", 3, 3); |
| 43 | +var square = await captcha.SolveSquareNet("iVBORw0KGgo...", "banana", 3, 3); |
36 | 44 |
|
37 | 45 | // Solve GeeTest
|
38 |
| -var gee = await antiCaptcha.SolveGeeTest("GEE_TEST_KEY", "https://example.com", "CHALLENGE"); |
39 |
| - |
40 |
| -Debugger.Break(); |
| 46 | +var gee = await captcha.SolveGeeTest("GEE_TEST_KEY", "https://example.com", "CHALLENGE"); |
41 | 47 | ```
|
42 | 48 |
|
43 |
| -### And here is the result structure *(same for all methods)*: |
| 49 | +### And here is the result structure *(the same for all methods)* |
44 | 50 |
|
45 | 51 | ```cs
|
46 | 52 | public struct AntiCaptchaResult
|
47 | 53 | {
|
48 |
| - public bool Success; |
49 |
| - public string Response; |
50 |
| - |
51 |
| - public AntiCaptchaResult(bool success, string response) |
52 |
| - { |
53 |
| - Success = success; |
54 |
| - Response = response; |
55 |
| - } |
| 54 | + public bool Success; |
| 55 | + public string Response; |
| 56 | + |
| 57 | + public AntiCaptchaResult(bool success, string response) |
| 58 | + { |
| 59 | + Success = success; |
| 60 | + Response = response; |
| 61 | + } |
56 | 62 | }
|
57 | 63 | ```
|
58 | 64 |
|
59 |
| -## 📎 License |
60 |
| - |
61 |
| -MIT License |
| 65 | +## Footer |
62 | 66 |
|
63 |
| -Copyright (c) 2019 Kamil Monicz |
| 67 | +### 📧 Contact |
64 | 68 |
|
65 |
| -Permission is hereby granted, free of charge, to any person obtaining a copy |
66 |
| -of this software and associated documentation files (the "Software"), to deal |
67 |
| -in the Software without restriction, including without limitation the rights |
68 |
| -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
69 |
| -copies of the Software, and to permit persons to whom the Software is |
70 |
| -furnished to do so, subject to the following conditions: |
| 69 | + |
71 | 70 |
|
72 |
| -The above copyright notice and this permission notice shall be included in all |
73 |
| -copies or substantial portions of the Software. |
| 71 | +### 📃 License |
74 | 72 |
|
75 |
| -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
76 |
| -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
77 |
| -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
78 |
| -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
79 |
| -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
80 |
| -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
81 |
| -SOFTWARE. |
| 73 | +* [Zaczero/AntiCaptcha](https://github.com/Zaczero/AntiCaptcha/blob/master/LICENSE) |
| 74 | +* [JamesNK/Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md) |
0 commit comments