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 all websites via ISPConfig remote API (http://www.howtoforge.com/forums/showthread.php?t=56988)

todx 19th April 2012 12:26

List all websites via ISPConfig remote API
 
I'm assuming that when I access sites web_domain_list.php is executed?

How can I use that from ISPConfig remote API?

Anyway I'd like to list all website domain using ISPConfig remote API...

till 19th April 2012 12:40

Please see remote API documnetation for a list of api functions, you find that in the remote_client/ API-docs/ folder of the ISPConfig tar.gz. All functions are described there incl. script examples.

todx 19th April 2012 12:47

I've found the example, but that only allows retrieving one website at a time by providing the id

todx 19th April 2012 13:18

Found a simple solution: =)

PHP Code:

$c=1;
while(
$domain_record $client->sites_web_domain_get($session_id$c)) {
     
var_dump($domain_record);
     
$c++;




All times are GMT +2. The time now is 07:08.

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