hi,
I am trying to use api function using php xml-api class.
I have done hours of several requests and i keep getting the following result:
My code is:
I'd be happy for any usefull information that might get me going...
I tried the same using curl and it did not work.
I am trying to use api function using php xml-api class.
I have done hours of several requests and i keep getting the following result:
Code:
string(122) "{"cpanelresult":{"apiversion":"2","error":"Access denied","data":{"reason":"Access denied","result":"0"},"type":"text"}} "
PHP:
$ip = "my server ip";
$xmlapi = new xmlapi($ip);
$xmlapi->set_port('2083');
$xmlapi->set_output('json');
$root_pass="my user password";
$xmlapi->password_auth("user",$root_pass);
$xmlapi->set_debug();
$xmlapi->get_debug();
$result= $xmlapi->xmlapi_query('showmanager');
var_dump($result);
I tried the same using curl and it did not work.