接受翻译开关设置接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
config_status | String | 可选 | 0/1 | 关闭/打开 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
model | Boolean | true | model |
msg_code | String | SUCCESS | msgCode |
msg_info | String | 调用成功 | msgInfo |
1 2 3 4 5 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaIcbuTranslateReceivemsgtranslateswitchSetRequest req = new AlibabaIcbuTranslateReceivemsgtranslateswitchSetRequest(); req.setConfigStatus( "0/1" ); AlibabaIcbuTranslateReceivemsgtranslateswitchSetResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < alibaba_icbu_translate_receivemsgtranslateswitch_set_response > < model >true</ model > < msg_code >SUCCESS</ msg_code > < msg_info >调用成功</ msg_info > </ alibaba_icbu_translate_receivemsgtranslateswitch_set_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|