Phone::Info - Fetches phone info.
Version 0.0.1
Quick summary of what the module does.
Perhaps a little code snippet.
use Phone::Info; my $pi = Phone::Info->new(); ...
This is the API key to use. Get one at "http://www.whitepages.com/".
If this is not defined $ENV{WHITEPAGESTOKEN} is used.
For a deeper understanding of values, check the URL below.
http://developer.whitepages.com/docs/Methods/find_person
The first name to search for.
The last name to search for.
The name to search for.
The house number.
The street name to search.
The city to search.
The 2 letter state to search.
The 5 or 9 digit zip code.
The phone area code to search.
A boolean value determining if the search should be expanded to the metro areas.
my $res=$pi->find_person(\%args); if($pi->{error}){ print "Error!\n"; }
Create a string from the results.
This is the returned search data.
This is the format string for each item. See the format section for more information on this.
The header that will be attached at the top.
If this is not defined, it is created based on the format.
For no header, set this to ''.
This should also include a new line.
If this is set to true, the fields will be quoted.
This defaults to true.
This is the character that should be used for quoting.
The default is '"'.
my $res=$pi->person(\%args); if($pi->{error}){ print "Error!\n"; } $pi->resFormat({ res=>$res, format=>$format, header=>$header, seperator=>',', quote=>1, quotechar=>'"', }); if($pi->{error}){ print "Error!\n"; }
This finds related phone number based on their address.
See the link below for more information.
http://developer.whitepages.com/docs/Methods/reverse_address
The apt to search for.
The house number searched to search for. This can be number take a range, "100-200".
The state to search.
The sip code to search.
This is the area code to search.
my $res=$pi->reverse_address(\%args); if($pi->{error}){ print "Error!\n"; }
This finds related addresses based on a phone number.
http://developer.whitepages.com/docs/Methods/reverse_phone
This is the phone number to look up.
my $res=$pi->reverse_phone(\%args); if($pi->{error}){ print "Error!\n"; }
This blanks the error storage and is only meant for internal usage.
It does the following.
$self->{error}=undef; $self->{errorString}="";
$args{token} is not defined and $ENV{WHITEPAGESTOKEN} is also not defined.
Failed to create the Net::WhitePages object.
find_person errored.
No search results passed.
No phone number specified.
This is a comma seperated string comprised of various items listed below.
This string sould not include any spaces or etc.
The first name of the first person found listed for the number.
The middle name for the first person found listed for the number.
The last name for the first person found listed for the number.
The phone number.
The house number for the address.
The street for the address.
The city the address is in.
The state the address is in.
The zip code for the address.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-phone-info at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Phone-Info. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-phone-info at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Phone::Info
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Phone-Info
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Phone-Info
CPAN Ratings
http://cpanratings.perl.org/d/Phone-Info
Search CPAN
http://search.cpan.org/dist/Phone-Info/
Copyright 2009 Zane C. Bowers, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Phone::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Phone::Info
CPAN shell
perl -MCPAN -e shell install Phone::Info
For more information on module installation, please visit the detailed CPAN module installation guide.