Skip to content

Functional Description

Query the result of a task by task ID

Request

plain
GET /task/info
Content-Type: application/x-www-form-urlencoded

Param

FieldTypeDescriptionRequired
taskIdstringTask idYes

Response

response body

First determine whether the code is 0, indicating whether the request is successful

Then judge the status of executeState,

If wait, continue polling.

If progressing, you can get the value of progress.

If finish, determine the value of the task resultState.

If resultState is 0, it means success, get url

If resultState is other cases, indicating failure and getting error information

json
{
  "code": 0,
  "msg": "success",          
  "data": {
    "taskId": "ea496f25ee544f7aba9e9edc089424ad",
    "progress": 100,
    "executeState": "FINISH",
    "resultState": 0,
    "errorMsg":"",
    "beatList": [
      699894,
      29395548
    ],
    "pointList": [
      699894,
      29395548
    ]
  }
}
FieldTypeDescriptionRequired
codeintStatus code, 0 is success, all others are failureYes
msgstringStatus informationYes
dataobjectReturned data bodyYes
taskIdstringTask idYes
progressintTask progressYes
executeStatestirngExecution Status
WAIT
WORK
FINISH
Yes
resultStateintResult Status
0 success
Other failures
No
errorMsgstringTask failure descriptionNo
beatList[ ]longThe detected rhythm point, in microsecondsNo
pointList[ ]longThe detected beat point, in microsecondsNo