Invoke account synchronization Hostbill<->App
GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=accountSynch&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->accountSynch(array('id'=>:ID)); print_r($return); } ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->accountSynch(array('id'=>:ID)); print_r($return); ?>
{ "success": true, "call": "accountSynch", "server_time": 1532074028, "info": [ "Account #363 synchronized." ] }