HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Developers' Forum (http://www.howtoforge.com/forums/forumdisplay.php?f=33)
-   -   List of Clients with APIs (http://www.howtoforge.com/forums/showthread.php?t=59944)

rapstyle 13th December 2012 17:20

List of Clients with APIs
 
Hi guys, for create a panel I need to have a list of clients that I have in the ISPConfig 3.04.6.
I have searched in the APIs but i don't find nothing.
I can use client_get for have the information about a determinated client, but for all clients?
Exist a function for have the total number of clients or for have the information about all clients? Thanks

webguyz 13th December 2012 18:01

It would be usefull to get a client list by total AND by reseller.

Rapstyle, you might want to enter it into the bugtracker so it gets on the roadmap for 3.0.6.

http://bugtracker.ispconfig.org/inde...dmap&project=3

rapstyle 13th December 2012 20:04

so for now i can't make this?

till 4th January 2013 15:08

Quote:

It would be usefull to get a client list by total AND by reseller.

Rapstyle, you might want to enter it into the bugtracker so it gets on the roadmap for 3.0.6.
Thats already possible with the current API, so no need for a feature request.

Quote:

I can use client_get for have the information about a determinated client, but for all clients?
The _get functions of all item types can be used to query the database for a list of as well.

Example:

$client_record = $client->client_get($session_id, array('client_id' => '%'));

abdi 7th January 2013 10:40

Wow, been querying the ISPConfig database directly all this while ..thanks for that insight.

Xenocide 7th January 2013 18:08

Quote:

Originally Posted by till (Post 290351)
Thats already possible with the current API, so no need for a feature request.



The _get functions of all item types can be used to query the database for a list of as well.

Example:

$client_record = $client->client_get($session_id, array('client_id' => '%'));

That's awesome. Can you quickly right an ASP.net panel? Website panel sort of blows :P

abdi 7th January 2013 18:58

right or write?

rapstyle 9th January 2013 14:34

Quote:

Originally Posted by till (Post 290351)
Thats already possible with the current API, so no need for a feature request.



The _get functions of all item types can be used to query the database for a list of as well.

Example:

$client_record = $client->client_get($session_id, array('client_id' => '%'));

great, thank you very much =)


All times are GMT +2. The time now is 13:54.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.