There are quite a few old and broken CPAN modules. I was unable to get any of the previously mentioned modules to work.

The state of the art is to use an OAUTH2 client to access the V1 Google Cloud API Services which includes GMail and Persons for the contacts list.

I am working on refining the CPAN Module WebService::GoogleAPI::Client and I put together a working example of listing an authenticated users' contacts in the examples which you can access directly from the CPAN tarball or from the Github pscott-au/WebService-GoogleAPI-Client Repo

More specifically - the examples that will work with version 0.18 are available at:

I note that this package was originally forked from the mentioned Moo::Google as I thought this would be a good way to learn Moo/Mojo from an existing substantial implementation but I should note that the more I dug into the source the more strange and what look seriously flawed things I came across to the extent that most of the original intent of the module has been refactored out. There remain a few indications of my lack of Moo/Mojo good practice but the new code is serving me well and I'll continue to apply my learnings to clean it up.

If there are any restless monks proficient in Moo and Mojo::UserAgent particularly in an OAUTH environment then I'd love some tips if anyone has time to skim the code.

Many thanks and hope that this helps someone who wants to send/receive email or like me really wants to start digging into the Google Cloud API Services.


In reply to Re: Perl module for gmail? by localshop
in thread Perl module for gmail? by nysus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.