更新时间:2021-01-27 16:09:06
当调用AI清除广告-任务发起接口时有指定了notifyUrl,那么当AI清除广告任务成功处理完成或处理失败后,将通过notifyUrl通知任务状态;如果任务成功处理完成,通知内容包含生成的新视频ID。
POST请求
Content-Type为application/json,通知内容以json格式写入请求的body中。
同接口AI清除广告-任务查询接口
通用返回结果祥见返回结果
成功时返回的data参数的数据结构
参数名 | 类型 | 描述 |
---|---|---|
taskId | string | AI清除广告任务ID |
status | int | 状态,取值范围: |
output | string | 生成的新视频ID |
以notifyUrl为 https://cloudv.chinanetcenter.com 为例,通知的请求如下
curl -X POST 'https://cloudv.chinanetcenter.com' \
-H 'Content-Type: application/json' \
-d '{"code":200,"data":{"output":"ab02dc9dca2a11eaab73c5d6f877d847","status":2,"taskId":"4ced37bc-ca2a-11ea-8653-ac61753fd979"},"message":"操作成功"}'
http状态码返回200则认为回调成功
通用错误码详见 返回结果