Menu

test : Método de teste para debugging

Esse método faz a leitura de dados de requisição AJAX POST, faz a análise dos mesmos e é retornado como um array. Ele também retorna dados do post em formato "raw". Você pode usá-lo para fazer o debug de seu código.

Endereço: https://api.anti-captcha.com/test
Método: POST
Content-type: application-json

Exemplo de solicitação

curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
"clientKey":"myClientKey",
"hello" : "world",
"apitest" : true
}' https://api.anti-captcha.com/test

Exemplo de resposta

HTTP/1.1 200 OK
Server: nginx/1.12.1
Date: Tue, 24 Oct 2017 21:25:57 GMT
Content-Type: text/html; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive

Parsed input JSON:
Array
(
    [clientKey] => myClientKey
    [hello] => world
    [apitest] => 1
)
Raw POST input:
{
"clientKey":"myClientKey",
"hello" : "world",
"apitest" : true
}