Как мне создать первую строку в новой таблице Google с помощью API?

Вот как я создаю электронную таблицу:

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

Есть идеи, как создать первую строку? Тот, который определяет имена полей.

6
задан JochenJung 3 December 2010 в 18:26
поделиться