Hi,
I'm leaing DA API's for my project and i'm testing the simplies way to connect with my DA account (admin of course) for now.
CMD_API_SHOW_USER_USAGE?user=user_name work fine, I can see nice array as a result.
But second day i'm fighting with the CMD_API_SHOW_ALL_USERS command or CMD_API_SHOW_USERS or CMD_API_SHOW_USERS=?reseller=reseller_name
I always get empty array as result: Array ( )
I tried to connect with and without SSL, always same result empty array.
I use simpliest code:
PHP Code:
$x = file_get_contents('https://admin:password@www.da_adress.com:2223/CMD_API_SHOW_ALL_USERS');
$y = urldecode($x); parse_str($y, $output); print
"<pre>";
print_r($output);
print "</pre>";
I tried connecting with httpsocket.php and connection was ok, but still same empty array.
Of course on the server there are ~300 hosting accounts. Hosting providers tells me that tehy dont block any of apis commands and my account have all rights to api.
I tried to print_r result before decoding and it was empty too for this commands. For command CMD_API_SHOW_USER_USAGE?user=user_name it was ok.
Very strange thing, could some one can help me?
DirectAdmin Forums...
ما را در سایت DirectAdmin Forums دنبال میکنید
برچسب: نویسنده: ایمان اصلاحی بازدید: 271 تاريخ: پنجشنبه 2 شهريور 1396 ساعت: 21:20