Gandi Wiki


Questions

Important:

¡Ayúdanos con el español!

Esta página todavía no ha sido traducida (o sólo parcialmente) en español. Si hablas francés o inglés, puedes ayudarnos.
Aquí encontrarás la versión FR de esta página, que podrás editar sólo con identificarte (con tu usuario Gandi).

Si prefieres traducir a partir de la versión EN, sólo tienes que abrir una nueva ventana, copiar-pegar la URL de la página y hacer clic en la bandera (arriba a la derecha) del idioma correspondiente. Si la página existe, aparecerá en el idioma deseado.

Gracias de antemano por ayudarnos con el español :)

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

No question on this page and its children.

RSS feed for questions matching this filter (Help)

Última modificación: Europe/BerlinTuesday 27/04/2010 a Tuesdaypm06 12:16 (editor externo)