Setting up/authenticating Google API?

Arshpreet Singh arsh840 at gmail.com
Mon Feb 22 07:24:01 EST 2016


On Sunday, 21 February 2016 21:21:54 UTC+5:30, Skip Montanaro  wrote:
> This isn't strictly a Python question, however... Once I get myself
> authenticated, I intend to use the Python Google API to pump archived
> mail messages from a few defunct mailing lists into Google Groups. I
> thought it would be pretty straightforward, but my attempts a few
> months ago were completely unsuccessful. I asked for help on the
> relevant Google product forum but got zero assistance.
> 
> I'd really appreciate a little help with the setup. If anyone has had
> successful experience with this, please contact me off-list. Once I
> get something going, I'll write a blog post so others don't have the
> same problems I have.
> 
> Thanks,
> 
> Skip Montanaro

Your question seems quite cinfusing to me but I think following may is what you are asking for.(Read the source)

https://google-mail-oauth2-tools.googlecode.com/svn/trunk/python/oauth2.py

After getting the authentication you can use imaplib to get all the gmail Data.




More information about the Python-list mailing list