createTask: maak een captcha-taak
Adres: https://api.anti-captcha.com/createTask
Methode: POST
Content-type: application-json
Eigenschappen aanvraag
| Eigenschap | Type | Verplicht | Doel |
|---|---|---|---|
| clientKey | String | Ja | |
| task | Object | Ja | |
| softId | Integer | Nr | |
| languagePool | String | Nr | Verplaatst naar captcha type ImageToTextTask. |
| callbackUrl | String | Nr |
Voorbeeld aanvraag
curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
"clientKey":"YOUR_API_KEY",
"task":
{
"type":"RecaptchaV2TaskProxyless",
"websiteURL":"http://makeawebsitehub.com/recaptcha/test.php",
"websiteKey":"6LfI9IsUAAAAAKuvopU0hfY8pWADfR_mogXokIIZ"
},
"softId":0
}' https://api.anti-captcha.com/createTaskStructuur reactie
| Eigenschap | Type | Doel |
|---|---|---|
| errorId | Integer | Foutcode. 0 - geen fouten, bewerking succesvol afgerond. >0 - fout identifier. De foutcode en de korte beschrijving ervan zijn beschikbaar in de eigenschappen errorCode en errorDescription. |
| errorCode | String | |
| errorDescription | String | Korte beschrijving van de fout |
| taskId | Integer |
Voorbeeld reactie
JSON zonder fouten
JSON met een fout
{
"errorId": 0,
"taskId": 7654321
}