gettlds
Purpose
This command can be used to retrieve available TLDs and prices.
Optional Attributes
- tld - array: specify list of TLD
Example Command
$postfields = array(); $postfields["responsetype"] = "json"; $postfields["action"] = "gettlds"; $postfields['tld[0]'] = '.hu'; $postfields['tld[1]'] = '.com'; $result = mikrovps_SendCommand( $postfields );
Successful Response
Array ( [result] => success [products] => Array ( [domain] => Array ( [0] => Array ( [.hu] => Array ( [tld] => .hu [period] => Array ( [1] => Array ( [register] => 10.00 [transfer] => 10.00 [renew] => 10.00 ) [2] => Array ( [register] => 20.00 [transfer] => 20.00 [renew] => 20.00 ) ) ) [.com] => Array ( [tld] => .com [period] => Array ( [1] => Array ( [register] => 20.00 [transfer] => 20.00 [renew] => 20.00 ) [2] => Array ( [register] => 40.00 [renew] => 40.00 ) ) ) ) ) ) )