Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103336

Re: Setting up/authenticating Google API?

Newsgroups comp.lang.python
Date 2016-02-22 04:24 -0800
References <mailman.9.1456069893.20994.python-list@python.org>
Message-ID <b50cdc84-45a2-41d2-bdcd-dd9433554805@googlegroups.com> (permalink)
Subject Re: Setting up/authenticating Google API?
From Arshpreet Singh <arsh840@gmail.com>

Show all headers | View raw


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.

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Setting up/authenticating Google API? Skip Montanaro <skip.montanaro@gmail.com> - 2016-02-21 09:51 -0600
  Re: Setting up/authenticating Google API? Arshpreet Singh <arsh840@gmail.com> - 2016-02-22 04:24 -0800
    Re: Setting up/authenticating Google API? Skip Montanaro <skip.montanaro@gmail.com> - 2016-02-24 12:57 -0600

csiph-web