Class AntiCaptcha
Implements the API of https://anti-captcha.com/
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib.CaptchaServices
Assembly: RuriLib.dll
Syntax
public class AntiCaptcha : CaptchaService
Constructors
| Improve this Doc View SourceAntiCaptcha(String, Int32)
Creates an AntiCaptcha client.
Declaration
public AntiCaptcha(string apiKey, int timeout)
Parameters
Type | Name | Description |
---|---|---|
System.String | apiKey | The AntiCaptcha API key |
System.Int32 | timeout | The maximum time to wait for the challenge to be solved |
Methods
| Improve this Doc View SourceGetBalance()
Gets the remaining balance in the account.
Declaration
public override double GetBalance()
Returns
Type | Description |
---|---|
System.Double | The balance of the account |
Overrides
| Improve this Doc View SourceSolveCaptcha(Bitmap)
Solves an image captcha challenge.
Declaration
public override string SolveCaptcha(Bitmap bitmap)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Bitmap | bitmap |
Returns
Type | Description |
---|---|
System.String | The text written in the image |
Overrides
| Improve this Doc View SourceSolveRecaptcha(String, String)
Solves a reCaptcha challenge for a given site.
Declaration
public override string SolveRecaptcha(string siteKey, string siteUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | siteKey | The SiteKey found in the page's source code |
System.String | siteUrl | The URL of the site to solve a reCaptcha for |
Returns
Type | Description |
---|---|
System.String | The g-recaptcha-response of the challenge |