views:

464

answers:

4

i am fairly new to programming for web. and i want to start from scratch here. i tried to search the net but ended up completely confused. now what i want to learn is how to authenticate a google account through a python script. can anyone please provide me with a code fragment or any example.

thanks a lot in advance.

+3  A: 

try this example

b3rx
A: 

See the document on Google Data API docs:

There's a ClientLogin sample under "Hello World".

ars
+1  A: 

Good intro: http://code.google.com/apis/accounts/docs/OAuth.html

Great working, playable example: http://googlecodesamples.com/oauth_playground/

Monis Iqbal
A: 

Some good links above (the playground is invaluable).

I use a mixture of Leah Culver's oAuth code (the example in b3rx's post) and FireEagle's Python OAuth code. The former, the last time I looked, was lacking scope methods.

Also, make sure you are clear on whether you are using 2 or 3 legged OAuth:

Jon Hadley