Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

www::cnic::response::domainlist(3pm) [debian man page]

WWW::CNic::Response::DomainList(3pm)			User Contributed Perl Documentation		      WWW::CNic::Response::DomainList(3pm)

NAME
WWW::CNic::Response::DomainList - a WWW::CNic response object for domain lists. SYNOPSIS
use WWW::CNic; my $query = WWW::CNic->new( OPTIONS ); my $response = $query->execute(); DESCRIPTION
Response module for domain list requests via the CentralNic Toolkit (http://toolkit.centralnic.com/). This module inherits most of its methods from the base class, WWW::CNic::Response. METHODS
$response->domains(); Returns an array containing all the domains that match the query. $response->regdate($domain); Returns a Unix timestamp corresponding to the registration date of the domain. $response->expirydate($domain); Returns a Unix timestamp corresponding to the expiry date of the domain. $response->status($domain); Returns a string containing the current status of the domain, for example: 'Live', 'Pending Deletion'. COPYRIGHT
This module is (c) 2011 CentralNic Ltd. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o http://toolkit.centralnic.com/ o WWW::CNic::Response o WWW::CNic perl v5.12.3 2011-05-13 WWW::CNic::Response::DomainList(3pm)

Check Out this Related Man Page

WWW::CNic(3pm)						User Contributed Perl Documentation					    WWW::CNic(3pm)

NAME
WWW::CNic - a web-based API for the CentralNic domain registry system. SYNOPSIS
use WWW::CNic; my @suffixlist = qw(uk.com us.com de.com eu.com); my $query = WWW::CNic->new(command => 'search', 'domain' => 'example'); $query->set(suffixlist => @suffixlist); my $response = $query->execute; if ($response->is_error) { printf("Error: %s ", $response->error); } else { foreach my $suffix(@suffixlist) { if ($response->is_registered) { printf("Domain %s.%s is registered to %s ", $domain, $suffix, $response->registrant($suffix)); } else { printf("Domain %s.%s is available for registration ", $domain, $suffix); } } } DESCRIPTION
"WWW::CNic" provides a powerful object-oriented Perl interface to the CentralNic Toolkit system. The design of "WWW::CNic" is inspired greatly by "LWP", which is a prerequisite. Essentially, making a transaction requires building a request object, which is then executed and returns a response object. While each transaction type (search, registration, modification...) requires a different set of data to be sent by the client, all the response objects have common properties, inherited from the "WWW::CNic::Response" base class, with just a few extra methods for accessing specific information. INSTALLATION
Installing "WWW::CNic" is as simple as: cd /usr/src wget http://toolkit.centralnic.com/dist/WWW-CNic-x.xx.tar.gz tar zxvf WWW-CNic-x.xx.tar.gz cd WWW-CNic-x.xx perl Makefile.PL make make install PREREQUISITES
1. "LWP" - the WWW Library for Perl. This in turn requires "libnet", "URI" and "HTML::Parser". 2. An SSL toolkit ("Crypt::SSLeay", "IO::Socket::SSL") for doing HTTPS transactions. 3. "Digest::MD5" is needed for hashing passwords. USAGE
Consult WWW::CNic::Cookbook for detailed information on using WWW::CNic. CONSTRUCTOR
my $query = WWW::CNic->new( [OPTIONS] ); The constructor for this class accepts the following options: 1. "username" - only needed for doing domain registrations and modifications. This is the User ID of your Registrar Handle. 2. "password" - the password for your Registrar Handle. 3. "command" - required for every transaction. This is a scalar containing the command name. The list of allowed commands is always growing, you should consult the Toolkit website for a complete list. 4. "domain" - only needed for domain registrations, modifications and other commands that act upon domains. 5. "host" - allows you to use to a non-standard host. This is mainly useful for client debugging purposes. 6. "test" - when set to 1, this causes any domain registration and modification transactions to use the test database. Again, this is useful for testing and debugging. 7. "keep_alive" - by default, WWW::CNic will use "LWP::ConnCache" to cache server connections. Setting "keep_alive" to 0 or "undef" will turn this off. METHODS
$query->set( NAME => VALUE ); This method allows you to set any number of parameters prior to executing the query. The specifics of what parameters are required for what type of transaction is explained in WWW::CNic::Cookbook. my $response = $query->execute(); This method makes the transaction and returns an instance of a "WWW::CNic::Response" child class. COPYRIGHT
This module is (c) 2011 CentralNic Ltd. All rights reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
o http://toolkit.centralnic.com/ o WWW::CNic::Cookbook o WWW::CNic::Simple perl v5.12.3 2011-05-14 WWW::CNic(3pm)
Man Page

Featured Tech Videos