Mike97M/2Captcha-API

#1
1634226484689.png
C# wrapper for 2Captcha API
https://githubmemory.com/repo/Mike97M/2Captcha-API

Prerequisites:
2Captcha API key

Usage:
Get Account Balance
Code:
TwoCaptchaApi api = new TwoCaptchaApi(<API_KEY>);
float balance = api.getBalance();
Solve Captcha
Code:
TwoCaptchaApi api = new TwoCaptchaApi(<API_KEY>);
string result = api.SolveCaptcha(IMAGE_PATH);
Solve ReCaptcha
Code:
TwoCaptchaApi api = new TwoCaptchaApi(<API_KEY>);
string result = api.SolveReCaptcha(SITE_KEY,SITE_URL);
Report incorrect captcha
Code:
TwoCaptchaApi api = new TwoCaptchaApi(<API_KEY>);
bool reported = api.reportBadCaptcha(2captcha.captchaId);