Edit domain parameters in HostBill, enter only those parameters you need to change
GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=domainEdit&id=:ID
<?php include 'class.hbwrapper.php'; $hbw = HBWrapper::singleton(); $hbw->setAPIUrl('http://url_to_hb.com/admin/api.php'); if($hbw->logIn("adminlogin","password")) { $return = $hbw->domainEdit(array('id'=>:ID)); print_r($return); } ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->domainEdit(array('id'=>:ID)); print_r($return); ?>
{ "success": true, "call": "domainEdit", "server_time": 1476356189, "info": [ "Domain aaa.com details change saved" ] }