use WWW::Google::Contacts; my $google = WWW::Google::Contacts->new( username => "your.username", password => "your.password" ); my $groups = $google->groups; while ( my $gr = $groups->next ) { print "You got a contact group called " . $gr->title . "\n"; }
Returns the next WWW::Google::Contacts::Group object
WARNING This is quite slow at the moment, at least if you've got a lot of contacts.
Given search criteria, will return all your contacts that matches critera.
my @spam_groups = $groups->search({ title => "Spam", });
TODO: Speed up. Make search arguments more flexible ( AND / OR / Regex / ... ).
Magnus Erixzon <magnus@erixzon.com>
This software is copyright (c) 2010 by Magnus Erixzon / Fayland Lam.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.
To install WWW::Google::Contacts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Google::Contacts
CPAN shell
perl -MCPAN -e shell install WWW::Google::Contacts
For more information on module installation, please visit the detailed CPAN module installation guide.