SitebuilderList

Retrieve all active Sitebuilders in your account.

Output

Parameter Value Example value
success command executed successfully 0 = error
1 = command executed successfully
command_response_message Error
Only sent when value parameter success = 0
incorrect password
total_count Totaal count of the Sitebuilders.
Only sent when value parameter success = 1
20
sitebuilder_id_X Unique Sitebuilder ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
45221
domain_id_X Unique domain ID.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
12345
domain_domain_X Domain.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
versio
domain_tld_X Domain tld.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
com
type_X Sitebuilder type. Value is 'free' or 'premium'.
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
premium


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "SitebuilderList", ); $api = new Versio_api(); $versio = $api->api_send( $command ); IF($versio['success']==0) { echo("Error occured. Error code: ".$versio['command_response_code'].". Error message: ".$versio['command_response_message'].""); } else { IF($versio['total_count']>0) { ?> <table> <? $teller = 1; while($versio['total_count']>=$teller) { ?> <tr> <td><? echo $versio['sitebuilder_id_'.$teller]; ?></td> <td><? echo $versio['domain_id_'.$teller]; ?></td> <td><? echo $versio['domains_'.$teller]; ?></td> <td><? echo $versio['domain_domain_'.$teller]; ?></td> <td><? echo $versio['domain_tld_'.$teller]; ?></td> <td><? echo $versio['type_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } else { echo("No sitebuilders found."); } } ?>