Step 4 on how to place an order using the API.

Step 4 - Getting results

As shown in 3.3.2.1, once the approval has been done, the results will be delivered as payload of the TASK_COMPLETED notification. If no callback URL was defined [see 3.2.1], you may get a detailed view of every task he ever created. During the task creation process you will receive the id as a unique reference to this task. Using this id allows to check all task related aspects. In order to get the results, use the following http-GET request: https://[environment].clickworker.com/api/marketplace/v2/customer/tasks/?show_cloned_task=true

For a task id given as 2405829 on the sandbox environment this would be:

https://sandbox.clickworker.com/api/marketplace/v2/customer/tasks/2405829?show_cloned_task=true

If the task has reached the state ‘finished’ there will be a <results> item within the XML-response for each output element as defined within the Task-template (see 3.1.3.2). The results part of the ‘task-details’ request would look like this:

  • XML
<task_response>
  <results>
    <code>title_top</code>
    <content>Title text created by clickworker</content>
  </results>
  <results>
    <code>paragraph_bottom</code>
    <content>Paragraph text created by clickworker</content>
  </results>
</task_response>
Tags: