xmlapi.php stopped working
Hello,
I was able to get list of FTP account using xmlapi.php before few days [14th Aug 2018]. But it's throwing following error now.
Error
Script I am using -
Appreciate if anyone can help.
SimpleXMLElement Object ( [error] => Access denied [data] => SimpleXMLElement Object ( [result] => 0 [reason] => Access denied ) )Script I am using -
include 'xmlapi.php';
$account = "xxxx";
$root_pass = 'xxxxx';
$ip = "xxx.xxx.xxx.xx";
$account = "xxxx";
$xmlapi = new xmlapi($ip);
$xmlapi->password_auth($account,$root_pass);
$list_ftpusers = $xmlapi->api2_query('Ftp', 'listftp',$account);
if($list_ftpusers){
print_r($list_ftpusers);
}else{
echo 'error';
}
Appreciate if anyone can help.
-
Hello @maheshbisen As of v74 of cPanel, we have removed the XML-API which was deprecated over a year ago per the deprecation plan here cPanel Deprecation Plan - cPanel Knowledge Base - cPanel Documentation We noted the removal in our release notes here: 74 Release Notes - Version 74 Documentation - cPanel Documentation Thanks! 0 -
Thanks :) 0
Please sign in to leave a comment.
Comments
2 comments