How to work with AntiGate correctly?
Hello.
Such a problem: I found an API for working with AntiGate, but every time I get the wrong answer.
Code:
AntigateClient client = AntigateClientBuilder.create()
.setKey("6vmpilt0prkawn0mscnzvq6jqhibcgyp").build();
// Проверка баланса
double balance = client.getBalance();
// Загрузка капчи
String id = client.upload("C:\\index.png");
CaptchaStatus cs = client.checkStatus(id);
if (cs.isReady()) {
String text = cs.getText();
System.out.println(text);
}
Captcha example:
Http://i65.fastpic.ru/big/2014/0831/30/8a8f25599cfa10ae5c8651fff3373b30.jpeg
What am I doing wrong?
1
1 answers
I've been using a good library for a long time - Antigate.NET. It seems that it is even listed on the official website of Antigate. In general, I strongly advise you. Solves correctly, there is a functionality of exceptions and feedback in case of incorrect solving of the captcha.
1
Author: Алексей Ефремов, 2015-05-03 19:26:20