Dataify Task Result
Retrieve one completed task's JSON result from the Dataify /download endpoint. Read the API key only from DATAIFY_API_TOKEN and never include it in output.
Workflow
- Require a task ID. Reuse an unambiguous task ID from the preceding task-status response when its status is
成功. - If the status is unknown, query it first with
$dataify-task-statusunless the user explicitly asks to retrieve the task result directly. - Ensure
DATAIFY_API_TOKENis set. Do not ask the user to paste an API key into chat or pass one on the command line. - Run
scripts/download_task_result.py --task-id TASK_ID. The script always sendstype=json. - Return the JSON response. If the provider reports an error, return the provider message without retrying the task automatically.
Commands
python3 -X utf8 scripts/download_task_result.py --task-id "TASK_ID"
To preview the request without downloading the result:
python3 scripts/download_task_result.py --task-id "TASK_ID" --dry-run
Reference
Read references/task_result_api.md for request parameters and response behavior.
评论
加载中…