clipboard-listget_task

imerit_ango.sdk.SDK.

get_task(task_id, include_answer)

Retrieve detailed information for a specific task.

Parameters

  • task_id: string

  • include_answer: bool, default False

    • Determines whether the task’s answer data is included in the response.

Returns:

  • output: dict

    • A dictionary containing the result of the operation.

    • Including a status field indicating whether the request was successful and a data field containing the response payload with updated resources produced by the operation.

Example

import os
from dotenv import load_dotenv
from imerit_ango.sdk import SDK

load_dotenv('variables.env')
api_key = os.getenv('API_KEY')

ango_sdk = SDK(api_key)

task_id = "<YOUR TASK ID>"
sdk_response = ango_sdk.get_task(task_id=task_id, include_answer=True)

data_url = sdk_response['data']['task']['asset']['data']
external_id = sdk_response['data']['task']['asset']['externalId']
circle-info

Last updated