Get list of tickets. Return list of tickets from departments administrator is assigned to
GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getTickets
{
"success": true,
"tickets": [
{
"admin_read": "1",
"id": "7",
"type": "Client",
"firstname": "Jack",
"lastname": "Black",
"date": "2011-12-12 06:28:00",
"lastreply": "1 day ago",
"dept_id": "1",
"name": "Jack Black",
"client_id": "8",
"status": "Open",
"ticket_number": "713456",
"tsubject": "#713456 - test",
"deptname": "Billing",
"priority": "0",
"notes": "0"
},
{
"admin_read": "1",
"id": "6",
"type": "Client",
"firstname": "Random",
"lastname": "Customer",
"date": "2011-10-28 23:53:01",
"lastreply": "Nov 16th",
"dept_id": "2",
"name": "first customer",
"client_id": "2",
"status": "In-Progress",
"ticket_number": "342777",
"tsubject": "#342777 - test support ticket",
"deptname": "Tech",
"priority": "0",
"notes": "1"
}
],
"call": "getTickets",
"server_time": 1323790009
}