内容审核 MODERATION-处理结果查询:响应示例

时间:2024-04-29 14:58:28

响应示例

状态码: 200

成功响应示例

{
  "result" : {
    "job_id" : "44d93b70-db01-4f96-a618-2a79c964c4b2",
    "status" : "finish",
    "create_time" : "2018-01-02T15:03:04Z",
    "update_time" : "2018-01-02T15:03:04Z",
    "items" : [ {
      "url" : "https://obs-test-llg.obs.myhuaweicloud.com/terrorism",
      "suggestion" : "pass",
      "detail" : {
        "terrorism" : [ {
          "confidence" : 0,
          "label" : "fire"
        }, {
          "confidence" : 0.0268,
          "label" : "normal"
        } ]
      }
    }, {
      "url" : "https://obs-test-llg.obs.myhuaweicloud.com/clarity-detect",
      "suggestion" : "pass",
      "detail" : {
        "terrorism" : [ {
          "confidence" : 0,
          "label" : "knife"
        }, {
          "confidence" : 0,
          "label" : "terrorist"
        }, {
          "confidence" : 0.3086,
          "label" : "bloody"
        }, {
          "confidence" : 0.6914,
          "label" : "normal"
        } ]
      },
      "ocr_text" : "fdfefdfdfdfd"
    } ]
  }
}

状态码: 400

失败响应示例

{
  "error_code" : "AIS.0005",
  "error_msg" : "The service does not exist."
}
support.huaweicloud.com/api-moderation/moderation_03_0039.html