Introduction
Query task execution results.
Request Description
- API address:
https://api.phenonet.org/api/v1/openapi/tasks/{{TASK_ID}}/
- Request method:
HTTPS GET
- Return format:
JSON
- Content-Type:
application/json
- Headers:
{"accessID": "{{STRING}}", "secretKey": "{{STRING}}"}
Parameter Description
| parameter |
data type |
description |
value |
required |
| accessID |
string |
accessID is required when sending requests |
see Step I: Get AI&SK |
True |
| secretKey |
string |
secretKey is required when sending requests |
see Step I: Get AI&SK |
True |
| task_id |
string |
task unique identification |
- |
True |
Response Description
json
{
"code": "{{INTEGER}}",
"msg": "{{STRING}}",
"data": {
"task_id": "{{STRING}}",
"file_path": "{{STRING}}",
"model_id": "{{STRING}}",
"task_name": "{{STRING}}",
"is_finished": "{{INTEGER}}",
"stage": "{{INTEGER}}"
}
}
Returned parameter description
| parameter |
data type |
description |
| code |
integer |
state code |
| msg |
string |
reference information |
| task_id |
string |
task Unique Identification |
| file_path |
string |
- |
| model_id |
string |
- |
| user |
string |
- |
| task_name |
string |
- |
| create_date |
string |
- |
| is_finished |
integer |
0: queue / 1: processing / 2: success / 3: error |
| stage |
integer |
1: jointing to booting stage (J-B)2: heading stage (H),3: flowering stage (F),4: grain filling stage (G-F)5: mature stage (M) |
Example Code
Error Code
| code |
description |
| 403 |
AI (Access ID) or SK (Secret Key) error |