...
Code Block | ||
---|---|---|
| ||
<?php require_once ('/path/to/modules/addons/nocpsforwhmcs/autoload.php'); $handler = new nocps_Handler ($pid, 'pid'); // replace $pid with tblhosting.id // OR: $handler = new nocps_Handler ($serverId, 'serverId'); // replace $serverId with tblservers.id $NocpsLoginDetails$nocpsLoginDetails = $handler->getInstance()->login; // Contains the NOC-PS login details and server id. Usually you don't need this. $api = $handler->getInstance()->api; // https://www.noc-ps.com/downloads/PXE_API.html // Execute API call like: // $api->getAvailableBandwidthData($mac); |
...