注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里翻译API

alibaba.translation.cloud.oms.get (获取计量数据)

获取机器翻译计量数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
id Number 可选 111 用户的uid
type String 可选 机器翻译通用版资源包 资源包类型

响应参数

名称 类型 示例值 描述
result_code Number 200 状态码
message String fail 错误信息
result String 1999 结果
is_success Boolean true 是否成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaTranslationCloudOmsGetRequest req = new AlibabaTranslationCloudOmsGetRequest();
req.setId(111L);
req.setType("机器翻译通用版资源包");
AlibabaTranslationCloudOmsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_translation_cloud_oms_get_response>
    <result_code>200</result_code>
    <message>fail</message>
    <result>1999</result>
    <is_success>true</is_success>
</alibaba_translation_cloud_oms_get_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部