Solutions

Ban Client or Remove Client Ban API

Vishal J Jan-7th, 2014 17:11 1 0

This API is used to Ban Client or Remove Client Ban

Please check example usage of Vision Helpdesk API

Operation : ban_client
Module : client

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

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

$postfields["vis_client_id"] = 1;
// This is client id which you wish to update

$postfields["vis_remove_ban"] = 1;
// 1 = remove ban and 0 = ban (optional in case of ban)

Below is example API URL to ban client

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=client
&vis_operation=ban_client
&vis_remove_ban=0
&vis_client_id=2


OR use "access token" to ban client

http://visiononlinedemo.com/support/api/index.php?
vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0=
&vis_module=client
&vis_operation=ban_client
&vis_remove_ban=0
&vis_client_id=2 


Below is example API URL To Remove Client Ban

http://visiononlinedemo.com/support/api/index.php?
&vis_txtusername=admin
&vis_txtuserpass=21232f297a57a5a743894a0e4a801fc3
&vis_module=client
&vis_operation=ban_client
&vis_remove_ban=1
&vis_client_id=2


OR use "access token" to Remove Client Ban

http://visiononlinedemo.com/support/api/index.php?
vis_txttoken=WXprMk1UY3dZV1V6WWpZeU16RmpOelF3TVdReE5UWTJOVGMyTm1VeU4yUT0=
&vis_module=client
&vis_operation=ban_client
&vis_remove_ban=1
&vis_client_id=2


Vote

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