geyrix57 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

spreadsheets-v3-atom-oauth-sample #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This would be an implementation of the listed sample at 
http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs#Google_Spreadshe
ets_Data_API
using JSON.

Which API and version: Google Spreadsheet API version 2

What format:JSON

What Authentation: ClientLogin

Java environment: Java 6

Trying to migrate from gdata spreadsheet API and have tried adapting several 
existing samples. Would eventually target Google Storage spreadsheets, but 
currently just need to work with 
https://spreadsheets.google.com/feeds/spreadsheets/private/full

Cheers,
John

Original issue reported on code.google.com by jth...@sustia.com on 15 Nov 2010 at 5:52

GoogleCodeExporter commented 9 years ago
This application is required to be deployed for Android 2.2 v - 8.
It is throwing eception when deploying on Android Plateform.

Original comment by naveen1...@gmail.com on 16 Nov 2010 at 12:29

GoogleCodeExporter commented 9 years ago
There is no JSON format for Google Spreadsheets.

Original comment by yan...@google.com on 16 Nov 2010 at 4:34

GoogleCodeExporter commented 9 years ago
yaniv, I need to do spreadsheet row/column updates as with 
gdata/ListFeed/ListEntry/CustomElementCollection. Would you recommend atom or 
other format, or just not migrate at this time?

Original comment by jth...@sustia.com on 16 Nov 2010 at 5:17

GoogleCodeExporter commented 9 years ago
Atom format should be supported.    Feel free to take a look at generic 
information about our XML support:

http://javadoc.google-api-java-client.googlecode.com/hg/1.2.1-alpha/com/google/a
pi/client/googleapis/xml/atom/package-summary.html

Or take a look at some of the Atom XML samples for the other Google API's:

http://code.google.com/p/google-api-java-client/wiki/GoogleAPIs

Original comment by yan...@google.com on 16 Nov 2010 at 7:36

GoogleCodeExporter commented 9 years ago
I'd like to see some examples of managing (CRUD operations) tables and table 
records.  I'm working on an app that will add rows to a particular spreadsheet 
from app engine and I'm trying to reduce the time I spend on writing Atom/XML 
helper classes, such as WorksheetEntry, TableEntry, RecordEntry.  

From the developer's guide 
(http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#TableRe
cordFeeds), there are many references to the gdata helper functions in the 
"Java" tab of each example but I'm trying to roll my own using the XML protocol 
definitions as it seems like that is the current direction of the Google Java 
client API, i.e. google provides the namespace and server-side capabilities but 
the rest is up to developers.  Is this the case?  Apologies if I missed a 
notice but I wasn't sure if google plans to deliver a new wrapper/helper 
library similar to gdata. 

Sean

Original comment by seanhor...@gmail.com on 14 Dec 2010 at 6:50

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 21 Dec 2010 at 3:25

GoogleCodeExporter commented 9 years ago
I am also interested in using the Spreadsheets 'Tables' API from 
google-api-java-client.  Even just a sample 'model' would be useful.

Original comment by dtbull...@gmail.com on 3 Jan 2011 at 7:51

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 3 Jan 2011 at 1:37

GoogleCodeExporter commented 9 years ago
Issue 115 has been merged into this issue.

Original comment by yan...@google.com on 9 Feb 2011 at 11:17

GoogleCodeExporter commented 9 years ago
Would love to see this example!

Original comment by mark.tro...@gmail.com on 10 Feb 2011 at 4:11

GoogleCodeExporter commented 9 years ago
I've spent a whole weekend trying to peice together a Spreadsheet client in 
Android/Maven to read data results from a Google Form. I was initially aiming 
for JSON to keep file size down, but at this point Atom is fine as well.

I have to say that the documentation for these API:s leaves much to be desired. 
I do consider myself quite skilled in picking up new open source API:s, even 
when poorly documented, but the Google Data Java API:s are huge in scope and 
quite fragmented, so it is very hard to piecie all dependencies together 
without a mentor or a detailed tutorial.

Can we please have a comprehensive Android V3 Spreadsheet example? Or which 
example should I look at otherwise?

Original comment by mag...@magnusart.com on 3 Jul 2011 at 10:15

GoogleCodeExporter commented 9 years ago
I've been trying to create a model for spreadsheet based on the calendar 
example. all went well until I got to the point of trying to map the gsx 
elements in the listfeed.
how do I go about it, as @key certainly doesn't help?

Original comment by OTo...@gmail.com on 1 Feb 2012 at 1:15

GoogleCodeExporter commented 9 years ago
#12, your data class inherits from com.google.api.client.util.GenericData which 
will give you and iterator() of Map.Entry<String,Object> ... anything not 
mapped via @Key ends up here.

Original comment by david.bu...@machaira.com.au on 1 Feb 2012 at 2:05

GoogleCodeExporter commented 9 years ago
@13, thanks for the reply, but I'm not sure I follow. Can you provide code?

Original comment by OTo...@gmail.com on 1 Feb 2012 at 4:27