# getTaskResult - get task result

After you have created a task, you need to get its response by periodically checking the solving status.

# Request parameters required optional

string clientKey Your unique account key, API key (You can find it here)
int taskId ID which was obtained in createTask method.

# Request body example

{
  "clientKey": "f95f25ea9e71408d8f272d523f8c281d",
  "taskId": 7654321
}

# Response structure

int errorId Error identification:
0 - no errors
1 - error, information about it is in the errorCode property
string errorCode Error code. Check out error list
string status Status identification:
processing - task is not ready yet
ready - task complete, solution object can be found in solution property

# Response example

{
  "errorId": 0,
  "status": "processing"
}
{
  "errorId": 0,
  "status": "ready",
  "solution": {
    "text": "answer"
  }
}