WWW::DomainTools - DomainTools.com XML API interface


WWW-DomainTools documentation  | view source Contained in the WWW-DomainTools distribution.

Index


NAME

Top

WWW::DomainTools - DomainTools.com XML API interface

SYNOPSIS

Top

 use WWW::DomainTools qw(search_engine name_spinner);

 my $repsonse = search_engine(
 	q => 'example.com',
	ext => 'COM|NET|ORG|INFO'
        key => '12345',
        partner => 'yourname',
        customer_ip => '1.2.3.4'
 );

 # OO
 my $obj = WWW::DomainTools::SearchEngine->new(
        key => '12345',
        partner => 'yourname',
        customer_ip => '1.2.3.4'
 );
 my $response = $obj->request(
 	q => 'example.com',
	ext => 'COM|NET|ORG|INFO'
 );




 # Custom LWP user agent
 my $ua = LWP::UserAgent->new;
 $ua->env_proxy(true);

 my $obj = WWW::DomainTools::SearchEngine->new(
        key => '12345',
        partner => 'yourname',
        customer_ip => '1.2.3.4',
        lwp_ua => $ua
 );
 my $response = $obj->request(
 	q => 'example.com',
	ext => 'COM|NET|ORG|INFO'
 );

 





DESCRIPTION

Top

This module allows you to use the name spinner and whois search available on domaintools.com.

These methods are available as both class and object methods. Nothing is exported by default.

EXPORTS

Top

None by default.

Allowed:

 - search_engine
 - name_spinner

METHODS

Top

search_engine ( url parameters hash )

The keys and values expected are documented on the Domain Tools website. In addition the "search engine" specific parameters, you need to pass the required parameters as documented in the WWW::DomainTools::SearchEngine new() method.

If the request is successful, the return value is either a hash reference or a string depending on the value of the 'format' parameter to the constructor.

See the documentation for the new() method for more detailed information about 'format' and other standard parameters.

If the HTTP request fails, this method will die.

name_spinner ( url parameters hash )

The keys and values expected are documented on the Domain Tools website. In addition the "name spinner" specific parameters, you need to pass the required parameters as documented in the WWW::DomainTools::NameSpinner new() method.

If the request is successful, the return value is either a hash reference or a string depending on the value of the 'format' parameter to the constructor.

See the documentation for the new() method for more detailed information about 'format' and other standard parameters.

If the HTTP request fails, this method will die.

SEE ALSO

Top

WWW::DomainTools::SearchEngine WWW::DomainTools::NameSpinner

BUGS

Top

Please report bugs using the CPAN Request Tracker at http://rt.cpan.org/

AUTHOR

Top

David Bartle <captindave@gmail.com>

COPYRIGHT

Top


WWW-DomainTools documentation  | view source Contained in the WWW-DomainTools distribution.