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

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

aliyun.nlp.automl.smartcall.service.run (智能外呼服务)

智能外呼服务

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
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 状态信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
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());

响应示例

  • XML示例
  • JSON示例
<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>

异常示例

  • 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

返回
顶部