Menu

pushAntiGateVariable: 안티게이트 태스크에 대한 변수 값을 제출하세요.

안티게이트 태스크의 경우, 태스크를 생성한 후에 변수 값은 나중에 체줄할 수 있는 특징이 있습니다. 이렇게 하려면, 다음의 단계를 따라주셔야 합니다.

  1. "WAIT_FOR_VARIABLE_VALUE" 단계를 템플릿에 추가하고 변수 이름을 영구 값으로 지정합니다.
  2. 모든 변수 값은 createTask 메소드로 전송되어야 하므로, 변수 값을 "_WAIT_FOR_IT_"으로 대체합니다.

태스크 생성 요청 시 다음과 같이 나타날 수 있습니다.

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
    "clientKey":"YOUR_API_KEY",
    "task":
        {
            "type":"AntiGateTask",
            "websiteURL":"https://some-website.com/path",
            "templateName":"Template name here",
            "variables": {
                "my_late_variable":"_WAIT_FOR_IT_",
                "other_var1":"some value",
                "other_var2":"some value"
            }
        }
}' https://api.anti-captcha.com/createTask

변수 "my_late_variable" 업데이트 요청은 다음과 같이 나타나야 합니다.

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
    "clientKey":"YOUR_API_KEY",
    "taskId":123456,
    "name":"my_late_variable",
    "value":"The value which worker should be waiting for"
}' https://api.anti-captcha.com/pushAntiGateVariable

주소: https://api.anti-captcha.com/pushAntiGateVariable
메소드: POST
Content-type: application-json

프로퍼티 요청

프로퍼티유형필수목적
clientKey스트링
taskId정수
name스트링변수 이름
value모두지연된 변수 값

반응 구조

프로퍼티유형목적
errorId정수오류 식별자.
0 - 오류 없음, 작업이 성공적으로 완료되었습니다.
>0 - 오류 식별자입니다. 오류 코드 및 간단한 설명은 errorCodeerrorDescription 속성에서 사용할 수 있습니다.
errorCode스트링
errorDescription스트링오류에 대한 짧은 설명

반응 예시

JSON(오류 없음)
JSON(오류 있음)
{
    "errorId":0,
    "status":"success"
}