Get a list of notes of the item.
GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=listAdminNotes&item_id=:ITEM_ID&item_type=:ITEM_TYPE
<?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->listAdminNotes(array('item_id'=>:ITEM_ID, 'item_type'=>:ITEM_TYPE)); print_r($return); } ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->listAdminNotes(array('item_id'=>:ITEM_ID, 'item_type'=>:ITEM_TYPE)); print_r($return); ?>
{ "success": true, "notes": [ { "id": "10", "type": "account", "rel_id": "1", "admin_id": "1", "date": "2018-08-17 04:45:17", "note": "Example note", "title": null, "firstname": "Default", "lastname": "User" } ], "call": "listAdminNotes", "server_time": 1534506671 }