Class SolveReCaptcha
Implements the API of https://www.solverecaptcha.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 SolveReCaptcha : CaptchaService
Constructors
| Improve this Doc View SourceSolveReCaptcha(String, String, Int32)
Creates a SolveRecaptcha client.
Declaration
public SolveReCaptcha(string userId, string apiKey, int timeout)
Parameters
Type | Name | Description |
---|---|---|
System.String | userId | The id of the user |
System.String | apiKey | The SolveRecaptcha 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 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 |