from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
task = client.v2.tasks.retrieve(
"taskId",
)
print(task.id)
{
"id": "<string>",
"status": "running",
"output": "<any>",
"state": "<any>"
}
Retrieves the details of a task.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
task = client.v2.tasks.retrieve(
"taskId",
)
print(task.id)
{
"id": "<string>",
"status": "running",
"output": "<any>",
"state": "<any>"
}
The unique identifier of the task to get.
Default Response
The response is of type object
.