Suspend service by IP. If more than one service uses this IP, specify its ID as optional argument. Note: This function is added by Account Search module, you need to activate it first in order to use this call
GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=suspendServiceByIP&ip=:IP
<?php include 'class.hbwrapper.php'; HBWrapper::setAPI('http://url_to_hb.com/admin/api.php','API ID','API Key'); $hbw = HBWrapper::singleton(); $return = $hbw->suspendServiceByIP(array('ip'=>:IP)); print_r($return); ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->suspendServiceByIP(array('ip'=>:IP)); print_r($return); ?>
{ "success": true, "call": "suspendServiceByIP", "server_time": 1497597102, "info": [ "Account #188 suspended" ] }