Solutions

Ticket Search API

Vishal J Jan-8th, 2014 15:27 0 0
This API is used to Search Tickets based on Ticket Hash

Please check example usage of Vision Helpdesk API

Operation: get_tickets
Module: ticket

$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

$postfields["vis_filter"] = avis_ticket.ticket_hash="VHD-218";
// This is search based on ticket hash in filter you have to pass ticket hash Where avis_ticket.ticket_hash is ticket hash field in avis_ticket table
OR
$postfields["vis_filter"] = avis_ticket.subject="test";
// This is search based on subject of ticket in filter you have to pass ticket subject Where avis_ticket.subject is ticket subject field in avis_ticket table

$postfields["vis_details_req"] = 1;
// This decides if you want search count, 1 = yes 0 = no

$postfields["vis_skip_info"] = 1;

$postfields["vis_limit"] = 0,10;
// returns first 10 results

Below is example API URL to search tickets by ticket hash

XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=avis_ticket.ticket_hash="VHD-218"
&vis_details_req=1
&vis_skip_info=1
&vis_limit=0,10

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=avis_ticket.ticket_hash="VHD-218"
&vis_details_req=1
&vis_skip_info=1
&vis_limit=0,10
&vis_encode=json

OR use "access token" to search tickets by ticket hash


XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=avis_ticket.ticket_hash="VHD-218"
&vis_details_req=1
&vis_skip_info=1
&vis_limit=0,10

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=get_tickets
&vis_filter=avis_ticket.ticket_hash="VHD-218"
&vis_details_req=1
&vis_skip_info=1
&vis_limit=0,10
&vis_encode=json

Vote

Was this article helpful?
0 out of 1 found this helpful