获取组织中所有工作的过滤列表。
网址:
发布 http://api.aurelon.com/api/v2/job/list
请求标头:
内容类型:多部分/表单数据
MisKey:见认证
HardwareHash:见认证
序列号:见认证
应用程序版本:请参阅身份验证
请求正文:
包含以下一个或多个过滤器的 JSON 对象:
- 序列号
- 工作
- 作业GUID
- 文档GUID
- 设备
- 设备GUID
- 媒体类型
- 媒体尺寸
- 队列
- 用户
- 制片人
- StatusList – 具有以下状态(错误、等待、进行中、已完成、已取消、已删除、PrintRequest、NotSupported)的数组。
- 活动作业(错误、等待、进行中、已取消、PrintRequest 和 NotSupported 状态)
- 已完成的作业(已完成、已删除)
以下状态区分活动作业和完成作业:
例子:
{“SerialNumber”:336484,"StatusList":["Waiting","Error"],"Producer":"Editor"}
回复:
返回由请求正文过滤器过滤的公司职位
成功:
200 OK : 返回工作列表
[{ "JobGUID": "88de5c02-cce6-411f-950f-be309caa4439", "JobName": "acox3", "Documents": [{ "DocumentGUID": "f6f2e084-d649-4ba7-ade3-f616657b8c8f", "Name": "acox.jpg" }], "Device": "Epson Stylus Pro 4800", "DeviceGUID": "e9af1259-5da3-46a7-bc00-84839d1f3dd6", "CreatedDate": "2016-05-18T06:59:36.727", "MediaType": "ProofMaster Contract Proofing Media SemiGloss 265g", "MediaSize": "Roll 17 inch", "QueueGUID": null, "QueueName": null, "Status": "Completed", "User": "karl.dunn", "Producer": "Layout", "Progress": null }, { "JobGUID": "cc14e944-1e6b-4274-a9b2-38e5721f8f81", "JobName": "apocalypse_2-wallpaper-1920x1080", "Documents": [{ "DocumentGUID": "44555edc-4a25-418f-8c04-1b8311c002a3", "Value": "apocalypse_2-wallpaper-1920x1080.jpg" }], "Device": "Epson Stylus Pro 4800", "DeviceGUID": "ab100a61-9c81-4e1e-aa97-6b07f4046c7a", "CreatedDate": "2016-05-18T06:57:24.427", "MediaType": "ProofMaster Contract Proofing Media SemiGloss 265g", "MediaSize": "Roll 17 inch", "QueueGUID": null, "QueueName": null, "Status": "Deleted", "User": "lisa.santiago", "Producer": "Layout", "Progress": 0 }]
错误:
- 401 Unauthorized : {“Message”:”Invalid HardwareHash”}
- 401 Unauthorized : {“Message”:”Invalid MisKey”}
- 401 Unauthorized : {“Message”: “”MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 415 不支持的媒体类型: {“消息”:“预期类型:应用程序/json”}
- 401 Unauthorized : {“Message”:””MisKey” or “HardwareHash”, “SerialNumber” and “ApplicationVersion” header are required”}
- 515 内部服务器错误: {“消息”:“内部服务器错误”}