Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Perl module for gmail?

by localshop (Monk)
on Nov 05, 2018 at 06:44 UTC ( [id://1225241]=note: print w/replies, xml ) Need Help??


in reply to Perl module for gmail?

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1225241]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-03-28 15:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found