Apps Developer Blog

Information for Google Apps Developers

Python, OAuth 2.0 & Google Data APIs

September 27, 2011
Share on Google+ Share on Twitter Share on Facebook
Google
Labels: oauth , python

11 comments :

Boris said...

"To store the token object in a secured datastore or keystore, the gdata.gauth.token_to_blob() function can be used to serialize the token into a string. The gdata.gauth.token_from_blob() function does the opposite operation and instantiate a new token object from a string."

Yes!!! I've been scratching my head for weeks now! Thank you. Off to check it out.

September 27, 2011 at 3:26 PM
Anonymous said...

That's great - what about 2-legged OAuth??

September 27, 2011 at 11:46 PM
Rajesh Valiya said...

which langauge is used in code?

September 28, 2011 at 12:39 PM
Rajesh Valiya said...

which langauge is used in code?

September 28, 2011 at 12:39 PM
Greg Tracy said...

It would be super helpful if the developer programs team could do a post to help explain how/where the google-api-python-client comes together with gdata-python-client. It's baffling.

November 25, 2011 at 2:50 PM
Anonymous said...

Great post! Nice to see a post about this stuff with actual example code, images, etc. Google's docs are a fn novel.

December 14, 2011 at 6:53 PM
Alain said...

Hello Greg,

Sorry about the late reply. Please have a look at Shraddha's blog post showing how to use both client libraries with the same access token:
http://googleappsdeveloper.blogspot.com/2012/01/automatically-setting-vacation.html

Best,
Alain

January 4, 2012 at 9:41 AM
D.G.C. Kumaranayaka said...

hi, im working with Google Contacts API.

and im working on Python.

i can add a contact for "Other Contacts" Group but i cannot specisf the Group "My Contacts"

March 20, 2012 at 2:06 AM
Devraj said...

Is there an example for installed apps?

March 28, 2012 at 4:30 AM
Richard said...

The example contains a bug. redirect_url should be redirect_uri

(URI not URL)

change that and everything works.

June 29, 2012 at 8:32 AM
Romot said...

Thanks for sharing! I'm wondering if anyone knows if it's possible to hack together this authorization method with this python api library? I like the API of but it looks like it only supports client auth and I need my visitors to use OAuth instead.

December 7, 2012 at 3:55 AM

Post a Comment

  

Labels


  • .NET 3
  • #io15 1
  • Administrative APIs 26
  • Admin SDK 4
  • AdSense 1
  • analytics 4
  • Android 5
  • App Engine 5
  • Apps Script 98
  • Auth 1
  • billing 4
  • Charts 1
  • Chrome OS 1
  • classroom 1
  • Cloud Storage API 1
  • Community 1
  • Developers 5
  • Directory API 1
  • Drive 2
  • Drive SDK 38
  • execution API 1
  • Firebase 1
  • Freemium 1
  • Fusion Tables 2
  • Gadgets 5
  • Gmail APIs 16
  • Google+ 3
  • Google APIs 3
  • Google Apps 3
  • Google Apps Directory API 1
  • Google Apps Marketplace 3
  • Google Apps Script 1
  • Google Calendar API 20
  • Google Contacts API 3
  • Google Data Protocol 7
  • google docs 3
  • Google Docs API 20
  • Google Drive 2
  • Google Forms 4
  • Google I/O 3
  • googlenew 1
  • Google Prediction API 3
  • Google Profiles API 2
  • Google sheets 2
  • Google Sites API 4
  • Google Spreadsheets API 4
  • Google Talk 1
  • Google Tasks API 6
  • Groups 2
  • Guest Post 42
  • ISVs 2
  • java 1
  • JavaScript 3
  • marketing 3
  • Marketplace 47
  • Marketplace ISV Guest 21
  • Migration 1
  • Mobile 1
  • mpstaffpick 1
  • oauth 11
  • OpenID 7
  • PHP 1
  • python 4
  • realtime API 1
  • Resellers 2
  • Ruby 1
  • SaaS 1
  • security 1
  • Staff Picks 2
  • webinar 2


Archive


  •     2015
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
  •     2014
    • Dec
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Mar
    • Feb
    • Jan
  •     2013
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2012
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2011
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb
    • Jan
  •     2010
    • Dec
    • Nov
    • Oct
    • Sep
    • Aug
    • Jul
    • Jun
    • May
    • Apr
    • Mar
    • Feb

Feed

Company-wide

  • Official Google Blog
  • Public Policy Blog
  • Student Blog

Products

  • Android Blog
  • Chrome Blog
  • Lat Long Blog

Developers

  • Developers Blog
  • Ads Developer Blog
  • Android Developers Blog
  • Google
  • Privacy
  • Terms