文档中心 > API类目 > 阿里体育智能运动api

alibaba.alisports.smartsports.game.time.match.data.query (对战基本信息数据)

对战基本信息数据

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
game_data_query GameDataQuery 必须 请求
  • └ venue_id
  • Number
  • 可选
  • 1
  • 场地id
  • └ match_venue_id
  • Number
  • 可选
  • 1
  • 赛事场地id
  • └ timestamp
  • Number
  • 可选
  • 1
  • 时间戳

响应参数

名称 类型 示例值 描述
result MpResult 包装类
  • └ model
  • String
  • 1
  • 结果
  • └ error_code
  • String
  • 1
  • 错误码
  • └ error_msg
  • String
  • 1
  • 错误信息
  • └ success
  • Boolean
  • 1
  • 结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsSmartsportsGameTimeMatchDataQueryRequest req = new AlibabaAlisportsSmartsportsGameTimeMatchDataQueryRequest();
AlibabaAlisportsSmartsportsGameTimeMatchDataQueryRequest.GameDataQuery obj1 = new AlibabaAlisportsSmartsportsGameTimeMatchDataQueryRequest.GameDataQuery();
obj1.setVenueId(1L);
obj1.setMatchVenueId(1L);
obj1.setTimestamp(1L);
req.setGameDataQuery(obj1);
AlibabaAlisportsSmartsportsGameTimeMatchDataQueryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_smartsports_game_time_match_data_query_response>
    <result>
        <model>1</model>
        <error_code>1</error_code>
        <error_msg>1</error_msg>
        <success>1</success>
    </result>
</alibaba_alisports_smartsports_game_time_match_data_query_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

返回
顶部