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

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

接口说明

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

调试

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

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。
  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:
    • 对于必选的资源类型,用前面加 * 表示。
    • 对于不支持资源级授权的操作,用全部资源表示。
  • 条件关键字:是指云产品自身定义的条件关键字。
  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作访问级别资源类型条件关键字关联操作
alimt:GetImageTranslateTaskget
*全部资源
*

请求参数

名称类型必填描述示例值
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.账号服务没有开通或者欠费

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

变更历史

变更时间变更内容概要操作
暂无变更历史