oTAMAKOo / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Unable to insert a worksheet or a row - Can not update a read-only feed #437

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Follow the samples on the samples on the introduction of the Google Data API 
1.6, throws exception for updating the spreadsheet (add a sheet, add a row, ..).

Here is the code - it is already there!!

            SpreadsheetsService service = new SpreadsheetsService("group-match-1");
            service.setUserCredentials("aaaa@gmail.com", "bbbb");

            SpreadsheetQuery query = new SpreadsheetQuery();
            SpreadsheetFeed feed = service.Query(query);

            foreach (SpreadsheetEntry entry in feed.Entries)
            {
                WorksheetEntry newWorksheet = new WorksheetEntry(10, 15, "new worksheet");
                WorksheetEntry createdWorksheet = (WorksheetEntry)feed.Insert(newWorksheet);

            }

Original issue reported on code.google.com by enfini...@gmail.com on 2 Nov 2010 at 10:43

GoogleCodeExporter commented 8 years ago
The recently updated documentation shows how to perform those operations with 
the Spreadsheets API.
For instance, here is a complete sample showing how to add a new row to a 
spreadsheet:

https://developers.google.com/google-apps/spreadsheets/#adding_a_list_row

Original comment by ccherub...@google.com on 19 Apr 2012 at 11:15