智能外呼服务
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
action | String | 必须 | action | 动作 | |
robot_id | Number | 可选 | 1 | 机器人ID | |
session_id | String | 可选 | session1 | 会话ID | |
params | String | 可选 | {} | 参数 | |
token | String | 必须 | 1234 | 授权凭证 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | String | {} | 服务结果 |
ret_code | Number | 200 | 状态码 |
ret_message | String | OK | 状态信息 |
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AliyunNlpAutomlSmartcallServiceRunRequest req = new AliyunNlpAutomlSmartcallServiceRunRequest(); req.setAction( "action" ); req.setRobotId(1L); req.setSessionId( "session1" ); req.setParams( "{}" ); req.setToken( "1234" ); AliyunNlpAutomlSmartcallServiceRunResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 | < aliyun_nlp_automl_smartcall_service_run_response > < result >{}</ result > < ret_code >200</ ret_code > < ret_message >OK</ ret_message > </ aliyun_nlp_automl_smartcall_service_run_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 > |
错误码 | 错误描述 | 解决方案 |
---|