2014-03-27 60 views

回答

1

什麼你的建議似乎是它可以通過添加行現有的電子表格簡單地完成。

// Fetch the list feed of the worksheet. 
URL listFeedUrl = worksheet.getListFeedUrl(); 
ListFeed listFeed = service.getFeed(listFeedUrl, ListFeed.class); 

// Create a local representation of the new row. 
ListEntry row = new ListEntry(); 
row.getCustomElements().setValueLocal("firstname", "Joe"); 
row.getCustomElements().setValueLocal("lastname", "Smith"); 
row.getCustomElements().setValueLocal("age", "26"); 
row.getCustomElements().setValueLocal("height", "176"); 

// Send the new row to the API for insertion. 
row = service.insert(listFeedUrl, row); 

來源:https://developers.google.com/google-apps/spreadsheets/

相關問題