4

I'm trying to access Google spreadsheets using gdata-python-2.0.17 library. In every tutorial, programmaticLogin(uname,pwd) is used but I feel it is not a good practice. I'm trying to overcome this by using OAuth 2.0 authentication(oauth2client.client). I've managed up to granting access to a Google account by getting user consent.

I'm not sure whether the standard gdata.spreadsheet.service.SpreadsheetsService() can be used in this scenario. According to this, it is not possible/easy to combine OAuth 2.0 and gdata-python library. It's highly appreciated if someone know how to handle this with the said APIs or using later versions of Google API which can be used.

Thanks

Joe Gregorio
  • 770
  • 4
  • 7
Tharindu Rusira
  • 691
  • 9
  • 17
  • 1
    There was no docs (here https://developers.google.com/google-apps/spreadsheets/) on how to do Java OAuth2 but it was possible. Looks like you need to find/write the code to pass the OAuth token. – eddyparkinson Aug 28 '13 at 13:47
  • I had a similar problem and solved it with this pattern in my answer: http://stackoverflow.com/questions/26925125/accesstokenrefresherror-google-spreadsheet-api-with-oauth-2-0-service-account-o – Ani Nov 20 '14 at 00:47

0 Answers0