これは私が、スプレッドシートを作成する方法である:APIを使用して新しいGoogleスプレッドシートに最初の行を作成するにはどうすればよいですか?
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は、名前と値のペア(名前は作成したい見出し)を挿入するため、すでに最初の行があることに基づいてseamを呼び出します。 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
一般的なドキュメントはこちら - バッチリクエストで複数のセルを更新する[または作成する]:https://developers.google.com/google-apps/スプレッドシート/#updating_multiple_cells_with_a_batch_request – jpillora