文档

GetImageTranslateTask - 获取异步图片翻译结果

通过任务ID获取异步图片翻译结果。

接口说明

注意 该接口已计划下线,不建议继续调用。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

授权信息

当前API暂无授权信息透出。

请求参数

名称类型必填描述示例值
TaskIdstring

异步图片翻译任务 Id

xxxxxx

返回参数

名称类型描述示例值
object
Codeinteger

状态码,200 表示正常

200
Messagestring

错误的时候,返回的错误信息

ok
RequestIdstring

请求的唯一串

xxxxxxx
Dataobject

返回的数据内容

ImageDatastring
  • 图片翻译结构化数据
[
  {
    "errorCode": "200",
    "sourceUrl": "https://img.alicdn.com/imgextra/i3/2838892713/O1CN01AJHAFq1Vub9eKog8t_!!2838892713.jpg",
    "success": true,
    "topRequestId": "of8hp0d9ne81",
    "url": "https://ae01.alicdn.com/kf/H86dc34f146e1488aa55a0435ebd1775cu.jpeg"
  },
  {
    "errorCode": "200",
    "sourceUrl": "https://img.alicdn.com/imgextra/i2/2838892713/O1CN01Ko5Mxu1Vub9Y85K6p_!!2838892713.jpg",
    "success": true,
    "topRequestId": "of8hp0d9ne81",
    "url": "https://ae01.alicdn.com/kf/H1cc74cbdfc554b278dfaa8b2ede33f48D.jpeg"
  }
]
  • sourceURL 原始图片地址
  • URL 翻译后的图片地址
[{xxxxxx}]

示例

正常返回示例

JSON格式

{
  "Code": 200,
  "Message": "ok",
  "RequestId": "xxxxxxx",
  "Data": {
    "ImageData": "[{xxxxxx}]"
  }
}

错误码

HTTP status code错误码错误信息描述
101System.RequestTimeOutThe request has timed out.请求超时
102System.ErrorA system error occurred.系统错误
103System.UrlDecodingErrorAn error occurred while decoding the URL. Verify that the specified URL is encoded.URL编码错误
104System.ParameterErrorSome required parameters are missing.参数错误
105System.LanguageNotSupportedThe specified language pair is not supported.该语向不支持
106System.LanguageDetectErrorAn error occurred while detecting the language.语种识别错误
107System.TranslateErrorAn error occurred while translating.翻译错误
108System.StringTooLongThe maximum length of the specified string is exceeded.字符过长
110System.AccountNotActivatedThe account has not activated the service.账号没有开通服务
111System.SubServiceFailedSub-account service failed.子账号服务失败
112System.TranslateServiceCallFailedFailed to call the translation service.翻译服务调用失败
113System.AccountNotActivatedOrInArrearsThe service is not activated or the account has an outstanding balance.账号服务没有开通或者欠费

访问错误中心查看更多错误码。

变更历史

变更时间变更内容概要操作
暂无变更历史
  • 本页导读 (0)
文档反馈