ijas Posted March 11, 2013 Share Posted March 11, 2013 I want to access list of clients using API. How we can do this. 0 Quote Link to comment Share on other sites More sharing options...
Alex - Arvixe Posted March 11, 2013 Share Posted March 11, 2013 This should do it for you: http://docs.whmcs.com/API:Get_Clients 0 Quote Link to comment Share on other sites More sharing options...
ijas Posted March 12, 2013 Author Share Posted March 12, 2013 I used the above code. But it shows following error message. ///////////////////// Fatal error: Call to undefined function localapi() in /home/helixsta/public_html/projects/test/whmcs/ws/index.php on line 11 ///////////////////// how we can use this code correctly. 0 Quote Link to comment Share on other sites More sharing options...
Aniruddh Posted March 12, 2013 Share Posted March 12, 2013 Paste the code you're using to make a localAPI() query. 0 Quote Link to comment Share on other sites More sharing options...
ijas Posted March 12, 2013 Author Share Posted March 12, 2013 (edited) I used the following code //////////////////// <?php include "../whmcs/dbconnect.php"; include "../whmcs/includes/functions.php"; include "../whmcs/includes/clientareafunctions.php"; $command = "getclients"; $adminuser = "tadmin"; $results = localAPI($command,$values,$adminuser); ?> //////////////////// There is no Errors. But there is no result to display. Edited March 12, 2013 by ijas 0 Quote Link to comment Share on other sites More sharing options...
Aniruddh Posted March 12, 2013 Share Posted March 12, 2013 Add this line: '<pre>'.print_r($results).'</pre>'; Do you see any output? 0 Quote Link to comment Share on other sites More sharing options...
ijas Posted March 12, 2013 Author Share Posted March 12, 2013 yes i got the out put. Thanks Aniruddh. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.