Help Regarding Live API 2 PHP

vivex

Registered
Jan 5, 2013
1
0
1
cPanel Access Level
Root Administrator
Hello All,

i am new in cpanel plugin development , i am trying to fetch the email of cpanel user and writing this code for it -

<?php
require_once "/usr/local/cpanel/php/cpanel.php";
$cpanel = new CPANEL();
$module="CustInfo";
$function="displaycontactinfo";
$live_api_result_array = $cpanel->api2( $module, $function);
echo $live_api_result_array['cpanelresult']['data']['result'];
?>
but nothing happening . please tell me where will be email id goes.