carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

OAuth and GDClient.py #425

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

Do you know how I can do the equivalent of the following code when I use the 
GDClient instead of the GDateService ?

GDataServive.SetOAuthInputParameters(
gdata.auth.OAuthSignatureMethod.HMAC_SHA1,
settings.CONSUMER_KEY, 
consumer_secret=settings.CONSUMER_SECRET, 
two_legged_oauth=True)

Thanks.

Regards,
Alexandre Vivien

Original issue reported on code.google.com by alx.vivien on 7 Aug 2010 at 10:31

GoogleCodeExporter commented 9 years ago
Is the sample OAuth code here what you are looking for?

 http://code.google.com/p/gdata-python-client/source/browse/samples/oauth/oauth_on_appengine/main_hmac.py

Original comment by joe.gregorio@gmail.com on 17 Sep 2010 at 6:40

GoogleCodeExporter commented 9 years ago
Agreed, this is very confusing.

I followed the Python version of this guide which was accurate and useful up 
until the point of actually using a stored access token (using HMAC_SHA1):
http://code.google.com/apis/gdata/docs/auth/oauth.html#UseAccessToken

The earlier example steps on the same page do a good job of delineating between 
v2.0+ classes based off of GDClient and older v1.0 classes based off of 
GDataService, but this last one does not.

Using the access token as given in the example results in cascading errors that 
I can't seem to diagnose.

Assistance would be much appreciated.

Kieran

Original comment by kieran.f...@gmail.com on 21 Oct 2010 at 12:40