导出
GET /apiv2/exports/tickets.json
调用权限
admin
请求参数
start_time:设定请求导出的工单创建时间的开始点(时间戳)
end_time:设定请求导出的工单创建时间的结束点(时间戳)
order:ID排序 'ASC' or 'DESC'
每页最多返回500条数据
注意:若不设置start_time,默认导出end_time之前创建的工单;
若不设置end_time,默认导出从start_time至当前时间内创建的工单;
若不设置order,默认导出工单按ID正序排列。
curl 示例
curl https://{subdomain}.kf5.com/apiv2/exports/tickets.json?start_time=1425698858 \ -v -u {email_address}:{password} \
返回示例
具体工单返回格式可以参考工单json示例
Status: 200 OK{ "tickets": [ { "id": 1767, "url": "https://supprot.kf5.com/apiv2/tickets/1767.json", "title": "test", ... }, { "id": 1766, "url": "https://supprot.kf5.com/apiv2/tickets/1766.json", "title": "来自于54435435的留言", ... }, ], "start_time": 1425698858, "end_time": 1427684365, "count": 2, "next_page": "null", "previous_page": null }