Send message from HostBill
GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=sendMessage&subject=:SUBJECT&body=:BODY&to=:TO
<?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->sendMessage(array('subject'=>:SUBJECT, 'body'=>:BODY, 'to'=>:TO)); print_r($return); } ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->sendMessage(array('subject'=>:SUBJECT, 'body'=>:BODY, 'to'=>:TO)); print_r($return); ?>
{ "success": true, "sent": true, "call": "sendMessage", "server_time": 1484990422 }