This API is used to fetch Tickets and Ticket DetailsPlease check
example usage of Vision Helpdesk APIOperation: get_tickets
Module: ticket
[Required]$postfields["vis_module"] = "ticket";
// This is the module under which you wish to perform operation$postfields["vis_operation"] = "get_tickets";
// This is the operation field[Optional]$postfields["vis_filter"] = 'ticket_id=115';
//You can filter your results based on what you pass to vis_filter field. Below example shows fetch ticket details of particular ticket id.Similarly you can fetch tickets based on ticket status:$postfields["vis_module"] = "ticket";
$postfields["vis_operation"] = "get_tickets";
[Optional]$postfields["vis_filter"] = 'status_id=1';
Similarly you can fetch tickets based on department: $postfields["vis_module"] = "ticket";
$postfields["vis_operation"] = "get_tickets";
[Optional]$postfields["vis_filter"] = 'department_id=2';
Similarly you can fetch tickets based on ticket folders$postfields["vis_filter_id"] = 1;
// 1=Inbox,2=New Tickets,3=Overdue tickets, 4=Assigned tickets, 5=Trash, 6=Spam, 7=Draft Below is example API URL to search ticketsFetching tickets by status id:
XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=1
JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=3
OR use "access token" to Fetch Tickets by status id:
XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=1
JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=status_id=3
Fetching Overdue tickets:
XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json
JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json
OR use "access token" to Fetch Overdue Tickets:
XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json
JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter_id=3
&vis_encode=json