Choices with GData, and the new API's
Well, I've been investigating using the new Java GData client libraries for Android to get Google Spreadsheet data.
Doing my experiments with CURL, I go through and get past GoogleLogin, the the auth token, and figuring out which feeds, entries I want. Just a note, make sure you login using the right Service Name, as you'll be able use the URL's in a browser, but not w/ CURL if you get it wrong.
The Picasa Android sample code works if you remove two @Override. Seems to work after that.
Table feeds seem lame for use w/ new API, it names all the fields with your titles, which is nice, but not helpful if your trying to generalize.
Spreadsheets also don't support JSONC alt type. So, I'm really inclined to write a python GAE helper to get the data, and reformat it for Android, it will make everything quite a bit simpler, and a lot smaller.
Spreadsheet Feed - a list of spreadsheets
ForEach SS
Worksheet Feed
ForEach WS Table Feed - Not nesc. defined for all spreadsheets
ForEach Table
RecordFeed
ForEach WorkSheet ListFeed - A bit nicer, labeled data, good for most applications, but not a general spreadsheet.
ForEach WorkSheet Cell Feed - The way we expect a spreadsheet, very wordy, but general. (I'd like this w/ JSONC & fields query)
The Doc's say that I should use ?updated-min=2010-06-27T00:59:30.487Z, but I'm finding that updatedMin=2010-06-27T00:59:30.487Z actually works. Unfortunately, like eTags, it's a on/off switch using the cell feed, ie, I either get nothing, or the whole spreadsheet. What I'd like is all that's changed since this time.
Doing my experiments with CURL, I go through and get past GoogleLogin, the the auth token, and figuring out which feeds, entries I want. Just a note, make sure you login using the right Service Name, as you'll be able use the URL's in a browser, but not w/ CURL if you get it wrong.
The Picasa Android sample code works if you remove two @Override. Seems to work after that.
Table feeds seem lame for use w/ new API, it names all the fields with your titles, which is nice, but not helpful if your trying to generalize.
Spreadsheets also don't support JSONC alt type. So, I'm really inclined to write a python GAE helper to get the data, and reformat it for Android, it will make everything quite a bit simpler, and a lot smaller.
Spreadsheet Feed - a list of spreadsheets
ForEach SS
Worksheet Feed
ForEach WS Table Feed - Not nesc. defined for all spreadsheets
ForEach Table
RecordFeed
ForEach WorkSheet ListFeed - A bit nicer, labeled data, good for most applications, but not a general spreadsheet.
ForEach WorkSheet Cell Feed - The way we expect a spreadsheet, very wordy, but general. (I'd like this w/ JSONC & fields query)
The Doc's say that I should use ?updated-min=2010-06-27T00:59:30.487Z, but I'm finding that updatedMin=2010-06-27T00:59:30.487Z actually works. Unfortunately, like eTags, it's a on/off switch using the cell feed, ie, I either get nothing, or the whole spreadsheet. What I'd like is all that's changed since this time.
Labels: Android, GData, Technology


0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home