Eric R. Meyers > WWW-WhitePages > WWW::WhitePages::XML::API

Download:
WWW-WhitePages-2008.0924.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 2008.0924   Source  

NAME ^

WWW::WhitePages::XML::API - How to Interface with WhitePages using HTTP Protocol and XML-RPC API.

SYNOPSIS ^

require WWW::WhitePages::XML::API;

my $request = WWW::WhitePages::XML::API::find_person( 'firstname' => 'Larry', 'lastname' => 'Wall' );

my $result = WWW::WhitePages::XML::API::ua_request( $request );

my $xml_tree = XML::TreeBuilder->new();

$xml_tree->parse( $result->content() );

$xml_tree->eof();

## DO SOMETHING HERE ##

$xml_tree->delete();

OPTIONS ^

--xml_* options:

opts_type_flag:

--xml_ua_dmp

user agent transaction dump

--xml_request_dmp

transaction request dump

--xml_result_dmp

transaction result dump

opts_type_numeric:

--xml_max_try

Maximum number of tries

--xml_delay_sec

Seconds of delay between tries

opts_type_string:

   NONE

DESCRIPTION ^

XML::API stands for XML Application Programming Interface

See: http://developer.whitepages.com

Demo

WWW::WhitePages::XML::demo()

find_person search method

See: http://developer.whitepages.com/docs/Methods/find_person

my $request = WWW::WhitePages::XML::API::find_person( 'firstname' => 'Larry', 'lastname' => 'Wall', );

my $result = WWW::WhitePages::XML::API::ua_request( $request );

my $xml_tree = XML::TreeBuilder->new();

$xml_tree->parse( $result->content() );

$xml_tree->eof();

## DO SOMETHING HERE ##

$xml_tree->delete();

reverse_phone search method

See: http://developer.whitepages.com/docs/Methods/reverse_phone

my $request = WWW::WhitePages::XML::API::reverse_phone( 'phone' => '7178968092' );

my $result = WWW::WhitePages::XML::API::ua_request( $request );

my $xml_tree = XML::TreeBuilder->new();

$xml_tree->parse( $result->content() );

$xml_tree->eof();

## DO SOMETHING HERE ##

$xml_tree->delete();

reverse_address search method

See: http://developer.whitepages.com/docs/Methods/reverse_address

my $request = WWW::WhitePages::XML::API::reverse_address( 'house' => '105', 'street' => 'Wind Hill Dr', 'city' => 'Halifax', 'state' => 'PA', 'zip' => '17032', );

my $result = WWW::WhitePages::XML::API::ua_request( $request );

my $xml_tree = XML::TreeBuilder->new();

$xml_tree->parse( $result->content() );

$xml_tree->eof();

## DO SOMETHING HERE ##

$xml_tree->delete();

SEE ALSO ^

WWW::WhitePages WWW::WhitePages::ML::API WWW::WhitePages::XML

AUTHOR ^

 Copyright (C) 2008 Eric R. Meyers E<lt>Eric.R.Meyers@gmail.comE<gt>
syntax highlighting: