UNLOCK API
getTaskResult

getTaskResult

작업 상태를 돌려줘요. 푸는 동안은 status가 processing이에요. 끝나면 status가 ready가 되고 solution에 답이 들어 있어요. 실패한 작업은 errorId 1과 이유를 돌려주고, 비용은 이미 잔액으로 돌아와 있어요.
POSThttps://unlock-api.com/getTaskResult
작업을 만들고 5초쯤 기다린 뒤 5초마다 확인하세요. 5분 안에 못 푼 작업은 ERROR_CAPTCHA_UNSOLVABLE로 실패해요.

요청 항목

clientKey
String필수
계정 화면에 있는 32자 API 키예요.
taskId
Integer필수
createTask가 돌려준 작업 번호예요.

요청

POST /getTaskResult
{
  "clientKey": "YOUR_API_KEY",
  "taskId": 1001
}

응답

{
  "errorId": 0,
  "status": "processing",
  "taskId": 1001
}

응답 항목

errorId
Integer
요청이 성공하면 0, 실패하면 1이에요.
taskId
Integer
작업 번호예요.
status
String
푸는 동안은 processing, 끝나면 ready예요.
solution
Object
답이에요. 들어 있는 항목은 작업 종류에 따라 달라요.
cost
String
이 작업의 가격(미국 달러)이에요.
createTime
Integer
작업을 만든 Unix 시간이에요.
endTime
Integer
작업을 푼 Unix 시간이에요.
solveCount
Integer
작업을 푼 횟수예요. 항상 1이에요.
errorCode
String
errorId가 1일 때 오류 이름이에요.
errorDescription
String
오류를 영어로 짧게 설명해요.

코드 예시

curl -s https://unlock-api.com/getTaskResult \
  -H "Content-Type: application/json" \
  -d '{"clientKey":"YOUR_API_KEY","taskId":1001}'

이 메서드가 돌려주는 오류