获取指定设备的基础信息(仅包含设备id,code,是否启用,位置信息,描述等基础信息)
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
work_bench_context | WorkBenchContext | 必须 | 请求发送端信息 | ||
|
|||||
uuid | String | 必须 | 67d1d4b8-eefb-4b83-b7ef-c5b2a1f17bba | 设备uuid |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | PojoResult | 返回对象 | |
|
1 2 3 4 5 6 7 8 9 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaCampusDeviceOpenapiGetsimpledeviceRequest req = new AlibabaCampusDeviceOpenapiGetsimpledeviceRequest(); AlibabaCampusDeviceOpenapiGetsimpledeviceRequest.WorkBenchContext obj1 = new AlibabaCampusDeviceOpenapiGetsimpledeviceRequest.WorkBenchContext(); obj1.setCompanyId(10000L); obj1.setCampusId(100001L); req.setWorkBenchContext(obj1); req.setUuid( "67d1d4b8-eefb-4b83-b7ef-c5b2a1f17bba" ); AlibabaCampusDeviceOpenapiGetsimpledeviceResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | < alibaba_campus_device_openapi_getsimpledevice_response > < result > < content > < code >物理设备-测试</ code > < campus_name >滨江园区</ campus_name > < campus_id >100002</ campus_id > < building_name >1号楼</ building_name > < building_id >100009</ building_id > < floor_name >1F</ floor_name > < floor_id >100049</ floor_id > < space_name >会议室</ space_name > < space_id >100045</ space_id > < longitude >120.0283358</ longitude > < latitude >30.2782495</ latitude > < be_logic >false</ be_logic > < template_code >BrakeMachine</ template_code > < template_id >110</ template_id > < uuid >67d1d4b8-eefb-4b83-b7ef-c5b2a1f17bba</ uuid > < device_id >67d1d4b8-eefb-4b83-b7ef-c5b2a1f17bba</ device_id > < be_run >true</ be_run > < nickname >测试设备别名</ nickname > < run_status >0</ run_status > </ content > < request_id >null</ request_id > < error_code >200</ error_code > < error_msg >null</ error_msg > < success >true</ success > </ result > </ alibaba_campus_device_openapi_getsimpledevice_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|