这是我如何创建电子表格:如何使用API在新的Google Spreadsheet中创建第一行?
DocsService client= new DocsService ("idea");
client.useSsl();
client.setOAuthCredentials (oauthParameters, new OAuthHmacSha1Signer());
DocumentListEntry newEntry= new com.google.gdata.data.docs.SpreadsheetEntry();
newEntry.setTitle (new PlainTextConstruct ("GIdeaDB"));
DocumentListEntry insertedEntry= client.insert (new URL (
"https://docs.google.com/feeds/default/private/full/?xoauth_requestor_id="+ userEmail), newEntry);
现在我想写的第一行吧。
但不幸的是,所有的API调用都基于事实,即已经有第一行,插入名称 - 值对(其中名称是我想创建的标题)。 http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html#CreatingTableRecords
任何想法如何创建第一行?定义字段名称的那个。
这改变了工作表的大小。 https://developers.google.com/google-apps/spreadsheets/#modifying_a_worksheets_title_and_size – eddyparkinson 2013-01-08 05:03:43
官方文档在这里 - 使用批量请求更新[或创建]多个单元格:https://developers.google.com/google-apps/电子表格/#updating_multiple_cells_with_a_batch_request – jpillora 2013-02-07 22:14:26