Magnus Erixzon > WWW-Google-Contacts-0.38 > WWW::Google::Contacts::GroupList

Download:
WWW-Google-Contacts-0.38.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Module Version: 0.38   Source  

SYNOPSIS ^

    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";
    }

METHODS ^

$groups->next

Returns the next WWW::Google::Contacts::Group object

$groups->search( $args )

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 / ... ).

AUTHOR ^

  Magnus Erixzon <magnus@erixzon.com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: