bestcaptchasolver/bestcaptchasolver-java

#1
BestCaptchaSolver Java API wrapper
bestcaptchasolverapi is a super easy to use bypass captcha Java API wrapper for bestcaptchasolver.com captcha service

Installation
git clone https://github.com/bestcaptchasolver/bestcaptchasolver-java

Dependencies
Code:
org.apache.httpcomponents:httpclient
org.json:json
How to use?
Simply import the library, set the auth details and start using the captcha service:
import com.bestcaptchasolver.BestCaptchaSolverAPI;

Set access_token or username and password (legacy) for authentication
String access_token = "your_access_key";
BestCaptchaSolverAPI bcs = new BestCaptchaSolverAPI(access_token);


Once you've set your authentication details, you can start using the API

Get balance
String balance = bcs.account_balance();
System.out.println(String.Format("Balance: %s", balance));


Submit image captcha
Code:
Map<String, String> d = new HashMap<String, String>();
d.put("image", "/home/me/Desktop/captcha.png");     // give it an ABSOLUTE path or b64encoded string
// d.put("is_case", "true");        // if case sensitive set to true, default: false, optional
// d.put("is_phrase", "true");      // if phrase, set to true, default: false, optional
// d.put("is_math", "true");        // true if captcha is math, default: false, optional
// d.put("alphanumeric", "1");      // 1 (digits only) or 2 (letters only), default: all characters, optional
// d.put("minlength", "2");         // minimum length of captcha text, default: any, optional
// d.put("maxlength", "4");         // maximum length of captcha text, default: any, optional
// d.put("affiliate_id", "your_affiliate_id");      // get it from /account
int id = bcs.submit_image_captcha(d);     // works with 2nd parameter as well, case sensitivty
Once you have the captchaID, you can check for it's completion
Code:
String image_text = "";
while(image_text.equals(""))
{
    image_text = bcs.retrieve(id).getString("text");
    Thread.sleep(2000);
}
Documentation https://githubmemory.com/repo/bestcaptchasolver/bestcaptchasolver-java