Hello, I saw that you posted on the gdata python contributor's group and I replied there:
http://groups.google.com/group/gdata-python-client-library-contributors/browse_thread/thread/19d93048d9914cd6 Thank you, Jeff On Sun, Jul 5, 2009 at 5:12 PM, fedex1 <[email protected]> wrote: > > Hi, > > I'm sure I'm missing something. But I don't see the correct way to > read a google spreadsheet from google app engine using OAuth. > > Is there a simple example? > > I can get the documents and spreadsheets names, dates, etc. but I > would like to access the data. > > > This is an example of reading a spreadsheet via installed app but I > want to do it from google app engine using OAuth. > > Thanks. > > import gdata.spreadsheet.text_db > > client = gdata.spreadsheet.text_db.DatabaseClient > (username='[email protected]',password='YYYY') > db = client.GetDatabases(name='My Tracks-street running') > table=db[0].GetTables()[0] > rows=table.GetRecords(1,1000) > for row in rows: > print row.content.get('name'),',', row.content.get('date'),',', > row.content.get('movingtime'),',', row.content.get('distance'),',', > row.content.get('distanceunit'),',', row.content.get('map') > > for row in rows: > print '===' > for cell in row.content: > print '%s = %s' % (cell, row.content.get(cell), ) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---
