Hi,
I am reading this page
http://code.google.com/apis/spreadsheets/docs/1.0/developers_guide_python.html#addRow
to know how to insert a new row in a spreadsheet.
But I am unable to do so.
def ListInsertAction(gd_client, key, wksht_id, row_data):
entry = gd_client.InsertRow(StringToDictionary(row_data),
key, wksht_id)
if isinstance(entry, gdata.spreadsheet.SpreadsheetsList):
print 'Inserted!'
Notice that the InsertRow definition takes a dictionary where the key
corresponds to the column name and the value corresponds to the value
of that column in the new row.
Can anyone explain what is the format of row_data and what exactly do
you mean by column name?
An example would be great !!
Thanks in advance,
Nikhil
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---