in reply to Perl module for gmail?

For contacts, you could try Moo::Google which is absolutely terribly named, but provides a low-level interface to cover all of Google's APIs, including People v1.

If you also need to access emails, it does support the GMail API, but I'd probably use Mail::Box to connect via IMAP4 with TLS.

Replies are listed 'Best First'.
Re^2: Perl module for gmail? (dependencies)
by hippo (Archbishop) on Aug 03, 2018 at 13:18 UTC

    That's a tad on the heavy side! Can anyone explain the rationale of Moo::Google having both Moo and Moose as dependencies?

Re^2: Perl module for gmail?
by nysus (Parson) on Aug 03, 2018 at 14:18 UTC

    OK, so I got it set up but I'm stuck on how to call Google's api for People. I've tried various things along the lines of:

    my $ri = $gapi->People->get; my $ri = $gapi->People->listPeopleConnections; my $ri = $gapi->People->contactGroups->list->json; my $ri = $gapi->People->batchGet; ...etc...

    How do I figure out which methods to call?

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks

Re^2: Perl module for gmail?
by nysus (Parson) on Aug 03, 2018 at 13:41 UTC

    Thanks, this looks like it could be the most comprehensive solution. It allows you to work with the JSON file that google gives you for a project.

    $PM = "Perl Monk's";
    $MCF = "Most Clueless Friar Abbot Bishop Pontiff Deacon Curate Priest";
    $nysus = $PM . ' ' . $MCF;
    Click here if you love Perl Monks