Solutions

Mark Ticket Spam or Not Spam API

Vishal J Jan-8th, 2014 14:36 0 0
This API is used to mark ticket as spam or not spam

Please check example usage of Vision Helpdesk API

Operation : update_properties
Module : ticket

$postfields["vis_module"] = "ticket";
// This is the module under which you wish to perform operation

$postfields["vis_operation"] = "update_properties";
// This is the operation field

$postfields["vis_ticket_id"] = 1;
// This is the ticket id

$postfields["vis_action] = "spam";

$postfields["vis_update_id"] = 1;
// 1= Mark as Spam, 0=Not Spam

Below is example API url to Mark Ticket as Not Spam:

XML
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=0
&vis_ticket_id=1

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=0
&vis_ticket_id=1
&vis_encode=json

OR use "access token" to Mark Ticket as Not Spam:


XML
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=0
&vis_ticket_id=1

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=0
&vis_ticket_id=1
&vis_encode=json


Below is example API url to Mark Ticket as Spam:

XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=1
&vis_ticket_id=238

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=1
&vis_ticket_id=238
&vis_encode=json

OR use "access token" to Mark Ticket as Spam:


XML:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=1
&vis_ticket_id=238

JSON:
http://visiononlinedemo.com/support/api/index.php?
&vis_txttoken=T0RSbU56TmpZemxoTlRabU1XWTJOV1ZtT0RWa1ltUm1NR1F6WldJell6VT0=
&vis_module=ticket
&vis_operation=update_properties
&vis_action=spam
&vis_update_id=1
&vis_ticket_id=238
&vis_encode=json

Vote

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