This API is used to Mark Client as Spammer or Remove Spam
Please check example usage of Vision Helpdesk API
Operation : toggle_spam
Module : client
$postfields["vis_module"] = "client";
// This is the module under which you wish to perform operation
$postfields["vis_operation"] = "toggle_spam";
// This is the operation field
$postfields["vis_client_id"] = 44;
$postfields["vis_spam"] = 1;
// 1 = Spam and 0 = Not Spam
Below is example API URL to Mark Client as Spammer
http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=client &vis_operation=toggle_spam &vis_spam=1 &vis_client_id=44
OR use "access token" to Mark Client as Spammer
http://visiononlinedemo.com/support/api/index.php? vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0= &vis_module=client &vis_operation=toggle_spam &vis_spam=1 &vis_client_id=44
Below is example API URL to Mark Client as not Spam
http://visiononlinedemo.com/support/api/index.php? &vis_txtusername=admin &vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3 &vis_module=client &vis_operation=toggle_spam &vis_spam=0 &vis_client_id=44
OR use "access token" to Mark Client as not Spam
http://visiononlinedemo.com/support/api/index.php? vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0= &vis_module=client &vis_operation=toggle_spam &vis_spam=0 &vis_client_id=44