文档中心 > API类目 > 智能设备

taobao.ailab.aicloud.call.device.cancel (通话能力注销)

接入通话的设备,在通话SDK初始化之前进行通话能力注册,只有注册的设备之间才允许进行通话,如果设备可解绑或可注销,则在解绑或注销时需要进行通话能力注销。

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
cancel_req CancelReq 必须 注销请求对象
  • └ device_name
  • String
  • 必须
  • 00-16-EA-AE-3C-40
  • 为待注销的设备名称。设备名称长度为4-32个字符,可以包含英文字母、数字和特殊字符:连字符(-)、下划线(_)、at符号(@)、点号(.)、和英文冒号(:)。 DeviceName通常与ProductKey组合使用,用作标识具体的唯一设备。
  • └ ext_user_id
  • String
  • 必须
  • 01MLnDVSANVwCRaIMp2cfryQ
  • 三方用户唯一标识
  • └ product_key
  • String
  • 必须
  • b1ZLOhA9rF7
  • 产品key,由天猫精灵分配给三方,每个设备类型分配一个
  • └ service_name
  • String
  • 必须
  • test_china_unicom_e_voip_call
  • 接入通话的服务名称,同一个服务名称下的设备之间才允许通话,品key,由天猫精灵分配给三方(测试和线上环境不同)

响应参数

名称 类型 示例值 描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AilabAicloudCallDeviceCancelRequest req = new AilabAicloudCallDeviceCancelRequest();
AilabAicloudCallDeviceCancelRequest.CancelReq obj1 = new AilabAicloudCallDeviceCancelRequest.CancelReq();
obj1.setDeviceName("00-16-EA-AE-3C-40");
obj1.setExtUserId("01MLnDVSANVwCRaIMp2cfryQ");
obj1.setProductKey("b1ZLOhA9rF7");
obj1.setServiceName("test_china_unicom_e_voip_call");
req.setCancelReq(obj1);
AilabAicloudCallDeviceCancelResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

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

返回
顶部