<div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Alex,</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</span></div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">This looks like the best lead I&#39;ve gotten in days!!! Thank you (I didn&#39;t find this when looking).</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">My business deliverable/deadline is past and I was able to get something working without Oauth2 (it worked. But the engineering wasn&#39;t nearly as good. And, that makes me sad).</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
I&#39;ll go over this now for my own benefit so I understand and am not rewriting the wheel... Who knows, maybe when I revisit this project, I can get a time allowance to make this work with OAuth2.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Thanks!!!!</div><div><br></div><div><br></div><div><br></div>Glen<div><br><div class="gmail_quote">On Wed, Aug 22, 2012 at 10:31 AM, Alex Martelli <span dir="ltr">&lt;<a href="mailto:aleax@google.com" target="_blank">aleax@google.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Haven&#39;t checked it out, but doesn&#39;t<br>
<a href="http://googleappsdeveloper.blogspot.com/2011/09/python-oauth-20-google-data-apis.html" target="_blank">http://googleappsdeveloper.blogspot.com/2011/09/python-oauth-20-google-data-apis.html</a><br>
help...?<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Alex<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Sun, Aug 19, 2012 at 5:45 PM, Glen Jarvis &lt;<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>&gt; wrote:<br>
&gt; I give.. I assume I&#39;m going to have to write my own data type library (or<br>
&gt; hack the old one) so that I can do oath. If that&#39;s incredibly silly and<br>
&gt; already done, please someone stop me...<br>
&gt;<br>
&gt;<br>
&gt; G<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Aug 19, 2012 at 1:19 PM, Glen Jarvis &lt;<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m going to take another stab at this. I have written a program with a<br>
&gt;&gt; Google library called &#39;gdata.&#39; When I wrote the program, it was a fairly<br>
&gt;&gt; small project and it was acceptable (although I didn&#39;t really like it) to<br>
&gt;&gt; put a username and a password in an external file and then read that file<br>
&gt;&gt; into the program and authenticate. This is how the gdata library seems to<br>
&gt;&gt; work (at least to the best of my knowledge (although I do think they support<br>
&gt;&gt; Oauth1 so I may have used that).<br>
&gt;&gt;<br>
&gt;&gt; Success brings it&#39;s own problems. I want to scale this program up many<br>
&gt;&gt; *many* times more than it&#39;s running now. Instead of a single gdata query<br>
&gt;&gt; running every six minutes or so, it now will run in bursts of 5K at a time.<br>
&gt;&gt; Possibly around 6K spread over an hour every hour.<br>
&gt;&gt;<br>
&gt;&gt; When seeing what would still work, the automatic program receives a<br>
&gt;&gt; &quot;Captcha&quot; assertion. I couldn&#39;t find what Google&#39;s limits were that caused<br>
&gt;&gt; this, but I received it just after a burst of 10 queries.<br>
&gt;&gt;<br>
&gt;&gt; Reading Google&#39;s online documentation, I need to use Oath2 for all of<br>
&gt;&gt; these services. Great! I like this -- especially the API console that&#39;s<br>
&gt;&gt; available to me (I&#39;m using the Google Drive/Google Spreadsheet API). I have<br>
&gt;&gt; successfully used Google&#39;s oauth2client client library to authenticate and<br>
&gt;&gt; use Oauth2.<br>
&gt;&gt;<br>
&gt;&gt; However, my problem is that I can&#39;t stick these two libraries together. I<br>
&gt;&gt; don&#39;t see an easy way (or at least the designed way) to do this. I&#39;m hoping<br>
&gt;&gt; that I&#39;m missing something obvious and that I just need to learn how to<br>
&gt;&gt; interface with gdata better. It&#39;s a time crunch project (aren&#39;t they all)<br>
&gt;&gt; and so I really hadn&#39;t had the time to learn the gdata library well enough.<br>
&gt;&gt;<br>
&gt;&gt; Has anyone tried to stick these two libraries together? It seems something<br>
&gt;&gt; that I imagine many people are needing to do. Since I don&#39;t see a lot of<br>
&gt;&gt; Google responses/questions to this, I can only imagine I&#39;m missing something<br>
&gt;&gt; painfully obvious and easy.<br>
&gt;&gt;<br>
&gt;&gt; So, for my second stab at asking, has anyone encountered this? Or, better<br>
&gt;&gt; yet, has anyone interface gdata with oauth2client python libraries?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Cheers,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Glen<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Thu, Aug 16, 2012 at 5:36 PM, Glen Jarvis &lt;<a href="mailto:glen@glenjarvis.com">glen@glenjarvis.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Has anyone tried to use the gdata.spreadsheet.service with Google&#39;s<br>
&gt;&gt;&gt; Oauth2?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I have a service that I&#39;ve written that uses gdata.spreadsheet.service.<br>
&gt;&gt;&gt; It used to use ProgrammaticLogin. I want to convert this to Oauth2. I<br>
&gt;&gt;&gt; thought there would be work already in this area by now. But, I&#39;m not<br>
&gt;&gt;&gt; finding it.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Has anyone else ran into this?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Glen<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; &quot;Pursue, keep up with, circle round and round your life as a dog does his<br>
&gt;&gt;&gt; master&#39;s chase. Do what you love. Know your own bone; gnaw at it, bury it,<br>
&gt;&gt;&gt; unearth it, and gnaw it still.&quot;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --Henry David Thoreau<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt;<br>
&gt;&gt; &quot;Pursue, keep up with, circle round and round your life as a dog does his<br>
&gt;&gt; master&#39;s chase. Do what you love. Know your own bone; gnaw at it, bury it,<br>
&gt;&gt; unearth it, and gnaw it still.&quot;<br>
&gt;&gt;<br>
&gt;&gt; --Henry David Thoreau<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; &quot;Pursue, keep up with, circle round and round your life as a dog does his<br>
&gt; master&#39;s chase. Do what you love. Know your own bone; gnaw at it, bury it,<br>
&gt; unearth it, and gnaw it still.&quot;<br>
&gt;<br>
&gt; --Henry David Thoreau<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div></div><div class="HOEnZb"><div class="h5">&gt; _______________________________________________<br>
&gt; Baypiggies mailing list<br>
&gt; <a href="mailto:Baypiggies@python.org">Baypiggies@python.org</a><br>
&gt; To change your subscription options or unsubscribe:<br>
&gt; <a href="http://mail.python.org/mailman/listinfo/baypiggies" target="_blank">http://mail.python.org/mailman/listinfo/baypiggies</a><br>
</div></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>