array tld_list(string session)
Returns the list of active TLDs handled by the application.
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.
try: ret = proxy.tld_list(session) pprint.pprint(ret) except xmlrpclib.Fault, e: print "could not retrieve the TLD list because: %s" % (e.faultString,)
$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); }
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); }
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)