Anybody know the correct syntax for updating a row in Google Spreadsheets using the Javascript API?
I'm working off of the API documentation here and I can't figure out what is the correct syntax I need to send the data in. What I have currently is:
var serialObject = $('#basicForm').serialize();
$.ajax({
url: updateBasicUrl,
type: 'PUT',
data: serialObject,
});
What should the syntax of the data field be (the above throws an unidentifiable error)?
EDIT - after converting a JSON object to XML to conform to the exact look of the xml here, it still doesn't work:
var updateBasicUrl = "https://spreadsheets.google.com/feeds/list/*spreadsheetIDnumber*/od6/private/full/*cellID*/*versionnumber*?access_token=*accesstoken*
$.ajax({
url: updateBasicUrl,
type: 'PUT',
contentType: 'application/atom+xml',
//contentType: 'text/xml', //tried both of these, they don't seem to work
data: xmlBasic,
})
EDIT - So it seems there is a Cross-Domain Origin problem. The Google Spreadsheets API won't allow it. Anybody know of a work-around?