Question about using WWW::Google::Contacts

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

I'm using the google contacts API here:

The script below will retrieve your google contacts "full name", albeit with
some errors.  Can I'm now trying to retrieve other parameters such as the
contact phone number.  Can someone explain to me how to get the phone number
along with the name?


#!/usr/bin/perl -w

use strict;
use warnings;

use WWW::Google::Contacts;
use WWW::Google::Contacts::Type::PhoneNumber;

my $google = WWW::Google::Contacts->new( username => "myacct\",
password => "mypass" );

my $contacts = $google->contacts;

while ( my $cont = $contacts->next ) {
   print "Name: " . $cont->full_name . "\n";
   ##   print "Phone: " . $cont->phone_number . "\n";

Site Timeline