Sorry it&#39;s taken me so long to respond. I know exactly the problem that you&#39;re talking about because we had the same problem for YouTube APIs. It turns out that you can use the newer Google APIs client library to do all of your OAuth2 stuff and then futz with the GData client library to make use of your OAuth2 tokens.<div>
<br></div><div>Here&#39;s a program (<a href="http://code.google.com/p/party-playlist-picker/">http://code.google.com/p/party-playlist-picker/</a>) that uses this hybrid trick. Just grep for gdata, OAuth2, etc. and you&#39;ll find what you need.</div>
<div><br></div><div>Happy hacking, and sorry I didn&#39;t get this response back to you before your deadline.</div><div><br></div><div>-jj<br><div><br><div class="gmail_quote">On Sun, Aug 19, 2012 at 10:19 PM, Glen Jarvis <span dir="ltr">&lt;<a href="mailto:glen@glenjarvis.com" target="_blank">glen@glenjarvis.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m going to take another stab at this. I have written a program with a Google library called &#39;gdata.&#39; When I wrote the program, it was a fairly small project and it was acceptable (although I didn&#39;t really like it) to put a username and a password in an external file and then read that file into the program and authenticate. This is how the gdata library seems to work (at least to the best of my knowledge (although I do think they support Oauth1 so I may have used that).<div>

<br></div><div>Success brings it&#39;s own problems. I want to scale this program up many *many* times more than it&#39;s running now. Instead of a single gdata query running every six minutes or so, it now will run in bursts of 5K at a time. Possibly around 6K spread over an hour every hour.</div>

<div><br></div><div>When seeing what would still work, the automatic program receives a &quot;Captcha&quot; assertion. I couldn&#39;t find what Google&#39;s limits were that caused this, but I received it just after a burst of 10 queries.</div>

<div><br></div><div>Reading Google&#39;s online documentation, I need to use Oath2 for all of these services. Great! I like this -- especially the API console that&#39;s available to me (I&#39;m using the Google Drive/Google Spreadsheet API). I have successfully used Google&#39;s oauth2client client library to authenticate and use Oauth2.</div>

<div><br></div><div>However, my problem is that I can&#39;t stick these two libraries together. I don&#39;t see an easy way (or at least the designed way) to do this. I&#39;m hoping that I&#39;m missing something obvious and that I just need to learn how to interface with gdata better. It&#39;s a time crunch project (aren&#39;t they all) and so I really hadn&#39;t had the time to learn the gdata library well enough.</div>

<div><br></div><div>Has anyone tried to stick these two libraries together? It seems something that I imagine many people are needing to do. Since I don&#39;t see a lot of Google responses/questions to this, I can only imagine I&#39;m missing something painfully obvious and easy.</div>

<div><br></div><div>So, for my second stab at asking, has anyone encountered this? Or, better yet, has anyone interface gdata with oauth2client python libraries?</div><div><br></div><div><br></div><div>Cheers,</div><div>
<br>
</div><div><br></div><div>Glen</div><div class="HOEnZb"><div class="h5"><div><br></div><div><br><div><br><div class="gmail_quote">On Thu, Aug 16, 2012 at 5:36 PM, Glen Jarvis <span dir="ltr">&lt;<a href="mailto:glen@glenjarvis.com" target="_blank">glen@glenjarvis.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Has anyone tried to use the gdata.spreadsheet.service with Google&#39;s Oauth2?<div><br></div><div>I have a service that I&#39;ve written that uses gdata.spreadsheet.service. It used to use ProgrammaticLogin. I want to convert this to Oauth2. I thought there would be work already in this area by now. But, I&#39;m not finding it.</div>


<div><br></div><div>Has anyone else ran into this?</div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div><br></div><div>Glen<span><font color="#888888"><br>-- <br>







<p>&quot;Pursue, keep up with, circle round and round your life as a dog does his master&#39;s chase. Do what you love. Know your own bone; gnaw at it, bury it, unearth it, and gnaw it still.&quot;</p>
<p>--Henry David Thoreau</p><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>







<p>&quot;Pursue, keep up with, circle round and round your life as a dog does his master&#39;s chase. Do what you love. Know your own bone; gnaw at it, bury it, unearth it, and gnaw it still.&quot;</p>
<p>--Henry David Thoreau</p><br>
</div></div>
</div></div><br>_______________________________________________<br>
Baypiggies mailing list<br>
<a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
To change your subscription options or unsubscribe:<br>
<a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>In this life we cannot do great things. We can only do small things with great love. -- Mother Teresa<br>

</div></div>