文档中心 > API类目 > 斑马小程序

yunos.ebanma.miniapp.voicegw.call (斑马车机小程序语音网关通用接口)

斑马车机小程序语音网关适配接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
miniapp_info String 必须 {"deviceToken":"token-791a114d36294e1b91a8ecfffe0dbaf9","uuid":"zebra-E2B12EBBC30D94C624E037B661AE97EF_qa","projectId":"BANMA"} 小程序容器透传信息
external_id String 必须 iflytek_nissan 外部合作方Id
external_info String 必须 { "id": "sWiS0Agts1q6z7PqPMuQTdtGtpRI1FbW", "conversationId": "12232132", "channelEnv": "test", "asrResult": "打开旅航纵横", "nluResult": "", "languageType": "zh-CH", "timestamp": 1, "latitude": 1.0, "longitude": 1.0, "nluResultForDm": "", "externalVin": "", "extendInfo": "" } 外部补齐信息

响应参数

名称 类型 示例值 描述
result String "" 返回结果详情
result_code String 200 返回状态码
result_msg String 请求成功 返回状态信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
YunosEbanmaMiniappVoicegwCallRequest req = new YunosEbanmaMiniappVoicegwCallRequest();
req.setMiniappInfo("{\"deviceToken\":\"token-791a114d36294e1b91a8ecfffe0dbaf9\",\"uuid\":\"zebra-E2B12EBBC30D94C624E037B661AE97EF_qa\",\"projectId\":\"BANMA\"}");
req.setExternalId("iflytek_nissan");
req.setExternalInfo("{   \"id\": \"sWiS0Agts1q6z7PqPMuQTdtGtpRI1FbW\",   \"conversationId\": \"12232132\",   \"channelEnv\": \"test\",   \"asrResult\": \"打开旅航纵横\",   \"nluResult\": \"\",   \"languageType\": \"zh-CH\",   \"timestamp\": 1,   \"latitude\": 1.0,   \"longitude\": 1.0,   \"nluResultForDm\": \"\",   \"externalVin\": \"\",   \"extendInfo\": \"\" }");
YunosEbanmaMiniappVoicegwCallResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<yunos_ebanma_miniapp_voicegw_call_response>
    <result>&quot;&quot;</result>
    <result_code>200</result_code>
    <result_msg>请求成功</result_msg>
</yunos_ebanma_miniapp_voicegw_call_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

返回
顶部