DomainsTLDInfo

Retrieve all available tlds and prices for your account. Eventually discounts are already deducted.

Input

Parameter Value Example value
tld Extension you wish to query.
Parameter is not required
com


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 Amount extensions
Only sent when value parameter success = 1
5
tld_X Extension
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
uk
newprice_X Price for first year
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
3.99
renewprice_X Price for next years
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
4.99
minimumyears_X Minimum amount of years to register
The X runs from 1 to the value of total_count
Only sent when value parameter success = 1
1


Example

<? require("class_versio_api.php"); unset($command); $command = array( "command" => "DomainsTLDInfo", ); $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['tld_'.$teller]; ?></td> <td><? echo $versio['newprice_'.$teller]; ?></td> <td><? echo $versio['renewprice_'.$teller]; ?></td> <td><? echo $versio['minimumyears_'.$teller]; ?></td> </tr> <? $teller++; } ?> </table> <? } } ?>