从公司获取所有设备
网址:
获取 http://api.aurelon.com/api/v2/device/{DeviceGUID} /地位
请求标头:
MisKey:见认证
HardwareHash:见认证
序列号:见认证
应用程序版本:请参阅身份验证
回复:
包含设备状态和当前运行作业的内容类型 application/json。 如果没有作业正在运行,则可以将 null 作为“CurrentJob”返回
成功:
200 OK : 返回设备状态对象
例子:
{ "DeviceName": "Epson Stylus Pro 4800", "DeviceStatus": "Idle", "DeviceType": "Printer", "MediaSize": "Roll 17 inch ", "Location": null, "ComputerGUID": "81517066-7a5b-4122-8e04-c5306b17e8c2", "Rip": "Rip-35", "SerialNumber": 344781, "CurrentJob”: { "JobGUID": null, "Name": null, "Copies": null, "RemainingPages": null, "User": null, "Progress": null }, "InProgressJobs": 0 }
错误:
- 401 Unauthorized : {“Message”: “Invalid HardwareHash”}
- 401 Unauthorized : {“Message”: “Invalid MisKey”}
- 404 未找到: {“消息”:“未找到 DeviceGUID”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” headers are required”}
- 400 错误请求: {“Message”: “DeviceGUID” value required”}
- 500 内部服务器错误: {“消息”:“内部服务器错误”}