Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Finaly found it. You have to do it cell by cell:</p> <pre><code> oauthParameters= new GoogleOAuthParameters (); oauthParameters.setOAuthConsumerKey (CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret (CONSUMER_SECRET); oauthParameters.setOAuthType (OAuthType.TWO_LEGGED_OAUTH); oauthParameters.setScope ("https://spreadsheets.google.com/feeds/"); SpreadsheetService spreadsheetService= new SpreadsheetService ("appname"); spreadsheetService.useSsl (); spreadsheetService.setOAuthCredentials (oauthParameters, new OAuthHmacSha1Signer ()); URL feedUrl= new URL ( "https://spreadsheets.google.com" + "/feeds/spreadsheets/private/full?title=Spreadsheetname&amp;xoauth_requestor_id=" + userEmail); SpreadsheetFeed resultFeed= spreadsheetService.getFeed (feedUrl, SpreadsheetFeed.class); List &lt;SpreadsheetEntry&gt; spreadsheets= resultFeed.getEntries (); SpreadsheetEntry spreadsheetEntry= spreadsheets.get (0); URL worksheetFeedUrl= spreadsheetEntry.getWorksheetFeedUrl (); log.severe (worksheetFeedUrl.toString ()); WorksheetFeed worksheetFeed= spreadsheetService.getFeed ( worksheetFeedUrl, WorksheetFeed.class); List &lt;WorksheetEntry&gt; worksheetEntrys= worksheetFeed.getEntries (); WorksheetEntry worksheetEntry= worksheetEntrys.get (0); // Write header line into Spreadsheet URL cellFeedUrl= worksheetEntry.getCellFeedUrl (); CellFeed cellFeed= spreadsheetService.getFeed (cellFeedUrl, CellFeed.class); CellEntry cellEntry= new CellEntry (1, 1, "headline1"); cellFeed.insert (cellEntry); cellEntry= new CellEntry (1, 2, "headline2"); cellFeed.insert (cellEntry); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload