Gandi Wiki


Questions

Misc methods

tld_list

Signature

array tld_list(string session)

Description

Returns the list of active TLDs handled by the application.

Parameters

  • string session: the session id (returned by login)

Returns

The XML-RPC response will return an array of TLDs (string) or a fault describing the problem. Possible faults are described in section Error Codes Format.

  • Sample code (python)
try:
    ret  = proxy.tld_list(session)
    pprint.pprint(ret)
except xmlrpclib.Fault, e:
    print "could not retrieve the TLD list because: %s" % (e.faultString,)
  • Sample code (php)
 
$msg  = new xmlrpcmsg("tld_list", array($session));
$reply  = $proxy->send($msg);
if ($reply->faultCode()) {
    printf("could not retrieve the TLD list because: %s\n", $reply->faultString());
}
else {
    $val  = php_xmlrpc_decode($reply->value());
    print_r($val);
}
  • Sample code (perl)
my $reply  = $proxy->call("tld_list", $session);
my $result  = $reply->result();
unless (defined $result) {
    printf "could not retrieve the TLD list because: %s\n", $reply->faultstring;
}
else {
    print Dumper($result);
}

Questions

Aucune question sur cette page et ses sous-pages.

Flux RSS des questions correspondant à ce filtre (Aide)

Dernière modification: le 03/03/2008 à 15:39 par Nicolas L. (Gandi)