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

alibaba.alisports.smartsports.venue.resource.bydevice.get (获取场地资源by device)

获取场地资源by device

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
resource_query ResourceQueryByDevice 可选 入参
  • └ device_id
  • String
  • 必须
  • C27EEF298DA3
  • 设备id

响应参数

名称 类型 示例值 描述
result MpResult 返回
  • model
  • VenueResourceDTO
  • model
  • └ device_id
  • String
  • 设备id
  • 设备id
  • └ ip
  • String
  • ip
  • ip
  • └ location_des
  • String
  • 北京市
  • 位置描述
  • └ venue_id
  • String
  • 1_1
  • 场地id
  • └ venue_name
  • String
  • 场地1
  • 场地名称
  • └ extend
  • String
  • {}
  • 扩展字段
  • └ image_url
  • String
  • https://xxx
  • 图片链接
  • └ direction
  • String
  • 1
  • 方向
  • └ location_name
  • String
  • 回龙观体育中心
  • 场馆名称
  • └ source_type
  • Number
  • 1
  • 场地运动类型
  • └ type
  • Number
  • 1
  • 场地室内外类型

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlisportsSmartsportsVenueResourceBydeviceGetRequest req = new AlibabaAlisportsSmartsportsVenueResourceBydeviceGetRequest();
AlibabaAlisportsSmartsportsVenueResourceBydeviceGetRequest.ResourceQueryByDevice obj1 = new AlibabaAlisportsSmartsportsVenueResourceBydeviceGetRequest.ResourceQueryByDevice();
obj1.setDeviceId("C27EEF298DA3");
req.setResourceQuery(obj1);
AlibabaAlisportsSmartsportsVenueResourceBydeviceGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alisports_smartsports_venue_resource_bydevice_get_response>
    <result>
        <model>
            <device_id>设备id</device_id>
            <ip>ip</ip>
            <location_des>北京市</location_des>
            <venue_id>1_1</venue_id>
            <venue_name>场地1</venue_name>
            <extend>{}</extend>
            <image_url>https://xxx</image_url>
            <direction>1</direction>
            <location_name>回龙观体育中心</location_name>
            <source_type>1</source_type>
            <type>1</type>
        </model>
    </result>
</alibaba_alisports_smartsports_venue_resource_bydevice_get_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

返回
顶部