文档中心 > API类目 > 淘宝直播API

taobao.anchor.live.ai.info.invoke (主播端AI能力触发)

主播端AI能力触发

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
gateway_request SkillGatewayRequest 必须 入参数
  • └ method_name
  • String
  • 必须
  • queryAiCard
  • 函数名
  • └ request_params
  • String
  • 必须
  • {"test":"112"}
  • 参数
  • └ service_name
  • String
  • 必须
  • AiItemCardSkillService
  • 服务名

响应参数

名称 类型 示例值 描述
trace_id String AFAF 鹰眼id
is_success Boolean true 是否成功
msg_info String 错误 错误信息
msg_code String -1 错误码
object String "" 返回对象

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AnchorLiveAiInfoInvokeRequest req = new AnchorLiveAiInfoInvokeRequest();
AnchorLiveAiInfoInvokeRequest.SkillGatewayRequest obj1 = new AnchorLiveAiInfoInvokeRequest.SkillGatewayRequest();
obj1.setMethodName("queryAiCard");
obj1.setRequestParams("{\"test\":\"112\"}");
obj1.setServiceName("AiItemCardSkillService");
req.setGatewayRequest(obj1);
AnchorLiveAiInfoInvokeResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<anchor_live_ai_info_invoke_response>
    <trace_id>AFAF</trace_id>
    <is_success>true</is_success>
    <msg_info>错误</msg_info>
    <msg_code>-1</msg_code>
    <object>&quot;&quot;</object>
</anchor_live_ai_info_invoke_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

返回
顶部