CMD_API_IP_MANAGER returns nothing

pppplus

Verified User
Joined
Dec 19, 2008
Messages
526
Hi

New problem with API

If I run :
Code:
$sock->query('/CMD_API_ADMIN_STATS');
I received results, and an array with :
Code:
$result=$sock->fetch_parsed_body();
	print_r($result);

My problem :
If I run
Code:
$sock->query('/CMD_API_IP_MANAGER');
I receive only :
Code:
Array ( [error] => 0 [text] => Sucess [details] => )

With directadmin in debug mode, I have :
Code:
Command::doCommand(/CMD_API_IP_MANAGER)
Apache::get_cb_apache_ver == 2.2
IP::writeFile. Current list:
listType: 1
 0: 2.3.4.6
 1: IP 1
 2: IP 2
 3: IP 3
 4: IP 4
 5: IP 5
 6: IP 6
 7: IP 7
 8: IP 8
Command::doCommand(/CMD_API_IP_MANAGER) : finished
Command::run: finished /CMD_API_IP_MANAGER

1st : how to have this on my results ?
2nd : http://www.directadmin.com/features.php?id=673
It's written :
method: GET (no post data)
Outputs the ip table (ip, status, reseller, user(s), nameserver, netmask)
In debug, I've only IP, not other informations.

Thanks for your help.
 
Hello,

Login to DA normally, and in your URL, type:
/CMD_API_ADMIN_STATS

to ensure you're getting actual data.
If that works, then it's something with the API... like the last thread, it may be an issue of using POST when DA is looking for GET.

John
 
Back
Top