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='x...@gmail.com',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 google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to