# 分词任务发送及回调示例
# 1. 创建任务请求JSON样例
{
"data": {
"callbackHost": "http://1......",
"url": "https://alieasset.meis....ioc0f1-488d-9ab7-e5b822b33a72.json"
},
"type": 5,
"uuid": "89d91798-c0f1-488d-9ab7-e5b822b33a72"
}
字段 | 描述 | 类型 | 是否必填 |
---|---|---|---|
type | 任务的类型,任务类型为 4 | int | 是 |
uuid | 任务的id号,唯一标识 | String | 是 |
data | 任务的详细信息 | object | 是 |
callbackHost | 回调的host | String | 是 |
url | 需要分词的json的url,json格式示例 https://alieasset.meishesdk.com/recognition/1330/89d91798-c0f1-488d-9ab7-e5b822b33a72.json (opens new window) | String | 是 |
# 2. 回调任务请求JSON样例
{
"data": {
"code": 0,
"message": "success",
"url": "https://alieasset.mei....or/2021/07/20/split-word/89.json"
},
"type": 5,
"uuid": "89d91798-c0f1-488d-9ab7-e5b822b33a72"
}
字段 | 描述 | 类型 |
---|---|---|
type | 任务的类型,转码任务类型为 0 | int |
uuid | 任务的id号,唯一标识 | String |
data | 任务转码后的详细信息 | Object |
code | 任务状态码 0成功 其他失败 | int |
message | 任务的结果信息 | String |
url | 分词之后的json的url,格式示例 https://alieasset.meishesdk.com/editor/2021/07/20/split-word/89d91798-c0f1-488d-9ab7-e5b822b33a72.json (opens new window) | String |