将开放设备id转换为内部设备id
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
device_open_id | String | 必须 | xiqenrozisainrqwlrejo | 设备openId | |
skill_id | String | 必须 | 1000 | 技能id |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | 接口返回model | |
|
1 2 3 4 5 6 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AilabAicloudTopDeviceDeviceidConvertRequest req = new AilabAicloudTopDeviceDeviceidConvertRequest(); req.setDeviceOpenId( "xiqenrozisainrqwlrejo" ); req.setSkillId( "1000" ); AilabAicloudTopDeviceDeviceidConvertResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 | < ailab_aicloud_top_device_deviceid_convert_response > < result > < code >200</ code > < message >success</ message > < result > < device_id >CCB48FB48FE45FF4ABF0FF712566C9D2</ device_id > </ result > </ result > </ ailab_aicloud_top_device_deviceid_convert_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 > |
错误码 | 错误描述 | 解决方案 |
---|